|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--iaik.security.ssl.SecurityProvider
|
+--iaik.security.ssl.IaikProvider
This class implements the SecurityProvider interface for the provider IAIK. Note that the IAIK provider only uses implementations from the IAIK JCE and not from any other providers that may be installed.
SecurityProvider| Constructor Summary | |
IaikProvider()
Default Constructor. |
|
| Method Summary | |
protected Cipher |
getCipher(java.lang.String algorithm,
int mode,
Key key,
AlgorithmParameterSpec param,
SecureRandom random)
Return an implementation for the requested algorithm from the IAIK provider. |
protected DHPrivateKey |
getDHPrivateKey(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger g)
This method returns an IAIK DHPrivateKey instance created from the given values. |
protected DHPublicKey |
getDHPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g)
This method returns an IAIK DHPublicKey instance created from the given values. |
protected byte[] |
getEncodedPrincipal(Principal principal)
This method returns a DER encoded Principal assuming it is an IAIK Name object. |
protected Principal |
getPrincipal(byte[] array)
This method returns a Principal (IAIK Name object) created from a DER encoded byte array. |
protected RSAPublicKey |
getRSAPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
This method returns an IAIK RSAPublicKey instance created from the given values. |
protected SecureRandom |
getSecureRandom()
Return an instance of the default SecureRandom class set in iaik.security.random.SecRandom. |
protected Signature |
getSignature(java.lang.String algorithm,
int mode,
Key key,
SecureRandom random)
Return an implementation for the requested algorithm from the IAIK provider. |
protected X509Certificate |
getX509Certificate(byte[] array)
This method returns an IAIK X509Certificate instance created from a DER encoded byte array. |
| Methods inherited from class iaik.security.ssl.SecurityProvider |
getKeyPairGenerator,
getMac,
getMessageDigest,
getSecurityProvider,
isImplemented,
setSecurityProvider |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public IaikProvider()
| Method Detail |
protected DHPublicKey getDHPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger g)
y - the public value yp - the prime modulus pg - the base generator g
protected DHPrivateKey getDHPrivateKey(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger g)
x - the private value xp - the prime modulus pg - the base generator g
protected RSAPublicKey getRSAPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
modulus - the moduluspublicExponent - the public exponent
protected X509Certificate getX509Certificate(byte[] array)
throws CertificateException
array - a X509Certificate as DER encoded byte array
protected Principal getPrincipal(byte[] array)
throws java.lang.Exception
array - a Name (Principal) as DER encoded byte arrayprotected byte[] getEncodedPrincipal(Principal principal)
principal - the Name (Principal) to encode
protected Signature getSignature(java.lang.String algorithm,
int mode,
Key key,
SecureRandom random)
throws java.lang.Exception
protected Cipher getCipher(java.lang.String algorithm,
int mode,
Key key,
AlgorithmParameterSpec param,
SecureRandom random)
throws java.lang.Exception
protected SecureRandom getSecureRandom()
iaik.security.random.SecRandom.
For more documentation see the superclass SecurityProvider.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||