|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.pki.PrincipalBuilder
A class for building a principal
Constructor Summary | |
protected |
PrincipalBuilder(PrincipalBuilderSpi builderSpi,
java.security.Provider provider,
java.lang.String format)
Create a new PrincipalBuilder object containing the given SPI object. |
Method Summary | |
java.security.Principal |
build(java.lang.Object contents)
Returns a new principal based on the given contents. |
java.lang.String |
getFormat()
Returns the name of the format of this object. |
static PrincipalBuilder |
getInstance(java.lang.String format)
Returns a PrincipalBuilder that implements the given format. |
static PrincipalBuilder |
getInstance(java.lang.String format,
java.security.Provider provider)
Returns a PrincipalBuilder from the given provider that implements the given format. |
static PrincipalBuilder |
getInstance(java.lang.String format,
java.lang.String provider)
Returns a PrincipalBuilder from the given provider that implements the given format. |
java.security.Provider |
getProvider()
Returns the provider of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PrincipalBuilder(PrincipalBuilderSpi builderSpi, java.security.Provider provider, java.lang.String format)
Method Detail |
public static PrincipalBuilder getInstance(java.lang.String format) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static PrincipalBuilder getInstance(java.lang.String format, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public static PrincipalBuilder getInstance(java.lang.String format, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public final java.security.Provider getProvider()
public final java.lang.String getFormat()
public final java.security.Principal build(java.lang.Object contents) throws PrincipalException
The parameter will probably be a String most of the times, however other things like an Image (for a photo) are also possible.
PrincipalException
- on a variety of format specific problems.
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |