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

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

Local Companies

PCs For Parents
800-998-8652
1506 16th St S
Fargo, ND
Atlas Business Solutions, inc. (ABS)
800-874-8801
3330 Fiechtner Drive SW
Fargo, ND
Martech Media
(701) 462-3525
611 Main St
Washburn, ND
Independent Consulting
(701) 677-4227
609 Pheasant Dr
South Heart, ND
D F C Consultants Ltd
(701) 483-6872
100 S State Ave
Dickinson, ND
Intelligent InSites
(701) 893-2080
102 Broadway
Fargo, ND
Atlas Business Solutions
701-235-5226
3330 Fietchner Dr.
Fargo, ND
Mini Computer Services
(701) 725-4320
15700 19th Ave NW
Des Lacs, ND
Information Technologies Inc
(701) 258-9105
Bismarck, ND
Stratacom
(701) 232-8847
1316 23rd St S
Fargo, ND

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

Intelligent InSites

7018932080
102 Broadway
Fargo, ND


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