An Overview of Cryptography in Java, Part 3: Writing Your Own Provider Maine

We continue our series on Java cryptography with a look at setting up a provider of security services.

Local Companies

Seaview Systems
(207) 644-8000
Middle Rd S
Bristol, ME
Cbe Services Inc
(207) 882-8464
30 Pinewood Dr
Wiscasset, ME
Skowhegan On Line
(207) 474-1291
3 N Pjewett
Skowhegan, ME
Business Systems Management
(207) 529-5849
352 Rock School House Rd
Bristol, ME
Abacus Technology Creations
(207) 236-9097
87 Elm St Ste 104B
Camden, ME
Office Solutions ME
207-319-6045
Portland Rd
Gray, ME
Tri County Computer Services
(207) 547-3535
Birch Cir
Augusta, ME
Telamon Technologies Inc
(207) 236-9010
Camden, ME
Standard I-O
(207) 541-4746
164 Middle St
Portland, ME
Burke Vernon D & Associates
(207) 474-1291
3 N Pjewett
Skowhegan, ME

provided by: 
Originally published at Internet.com


Establishing a Provider



The first step in building a provider is to create a Provider subclass that includes the algorithms. Providers are represented by a name that is a subclass of java.security.Provider. Each provider class has a name, version number, and string description. You can query these using:

public String getName() public double getVersion() public String getInfo()

To establish the provider subclass, import the java.security library, extend java.security.Provider, and make a call to super with the specifics:

import java.security.*; public class Provider extends java.security.Provider { public Provider() { super ("ECP", 1.1, "Earthweb's Cryptography Provider"); put("","") put("",""); } }

The call to super specifies a providers short name (used in the getInstance() methods that accept a provider name), version number, and a long name or description.

Provider is a subclass of java.util.Hashtable. It keeps mappings between algorithm names and implementations as a list of string mappings. You can add mappings by using the put() method. The put() method takes two arguments: one is in the form of engine.algorithm; the second is the name of the class that implements the algorithm for the specified provider...

Read article at Internet.com site

Featured Local Company

Office Solutions ME

207-319-6045
Portland Rd
Gray, ME

Related Local Events
Fitness Ball Workout
Dates: 5/7/2010 - 5/7/2009
Location: WALDO COUNTY GENERAL HOSPITAL'S EDUCATION CENTER
BELFAST, ME
View Details

Strong Women Workout
Dates: 12/17/2009 - 12/17/2009
Location: WALDO COUNTY GENERAL HOSPITAL'S EDUCATION CENTER
BELFAST, ME
View Details

Fitness Ball Workout
Dates: 12/10/2009 - 12/10/2009
Location: WALDO COUNTY GENERAL HOSPITAL'S EDUCATION CENTER
BELFAST, ME
View Details

Fitness Ball Workout
Dates: 12/8/2009 - 12/8/2009
Location: WALDO COUNTY GENERAL HOSPITAL'S EDUCATION CENTER
BELFAST, ME
View Details

Strong Women Workout
Dates: 12/1/2009 - 12/1/2009
Location: WALDO COUNTY GENERAL HOSPITAL'S EDUCATION CENTER
BELFAST, ME
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML