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

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

Local Companies

Computer Port
406-883-6237
314 First Street East Suite 202
Polson, MT
Software Integrators
(406) 586-8866
4055 Valley Commons Dr Ste C
Bozeman, MT
Fiserv
(406) 443-6198
44 W 6th Ave Ste 100
Helena, MT
Ims Racing
(406) 252-7210
848 Main St
Billings, MT
Design Services
(406) 586-2674
2100 Fairway Dr
Bozeman, MT
Click Here Designs, LLC
406-883-6237
314 First Street East Suite 202
Polson, MT
Cuc Software Inc
(406) 254-9677
1645 Avenue D Ste A
Billings, MT
Ims
(406) 727-5600
2300 12th Ave S
Great Falls, MT
Mastertrack Software
(406) 538-5800
942 Maiden Rd
Lewistown, MT
Isc Distributors
(406) 586-3105
101 E Mendenhall St
Bozeman, MT

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

Click Here Designs, LLC

406-883-6237
314 First Street East Suite 202
Polson, MT
http://www.clickheredesigns.com/

Click Here Designs, LLC has been creating professional websites from Polson since 1997. Our extensive portfolio is available on our website. We offer complete web development services, including search engine optimization, web site maintenance, and complete webmaster services. When in doubtClick Here.


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