|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.Reference
com.rsa.swsj.RetrievalMethod
This class builds and stores a RetrievalMethod element in
KeyInfo. It is used to convey a reference to
KeyInfo information that is stored at another location. It
contains a URI that points to the real KeyInfo information and
an optional field type that specifies the KeyInfo type. This
URI is set with the setURI method in the
Reference base class.
| Field Summary | |
static java.lang.String |
DSAKEY_VALUE_TYPE
A URL defining the type value of |
static java.lang.String |
ENCRYPTED_KEY_TYPE
A URL defining the type value of |
static java.lang.String |
RSAKEY_VALUE_TYPE
A URL defining the type value of |
static java.lang.String |
X509CERTIFICATE_TYPE
A URL defining the |
static java.lang.String |
X509DATA_TYPE
A URL defining the type value of |
| Fields inherited from class com.rsa.swsj.Reference |
ALG_TRANSFORM_BASE64, ALG_TRANSFORM_C14N, ALG_TRANSFORM_C14N_WITH_COMMENTS, ALG_TRANSFORM_ENVELOPED_SIGNATURE, ALG_TRANSFORM_EXCLC14N, ALG_TRANSFORM_EXCLC14N_WITH_COMMENTS, ALG_TRANSFORM_XPATH |
| Constructor Summary | |
RetrievalMethod(SWSJContext context)
Creates an empty |
|
RetrievalMethod(SWSJContext context,
java.lang.String uri)
Creates a |
|
| Method Summary | |
java.security.cert.X509Certificate |
getCertificate()
Gets a binary (ASN.1 DER) X.509 Certificate to which this RetrievalMethod refers. |
getKeyInfo()
Gets the KeyInfo referred by this |
|
java.lang.String |
getType()
Gets the |
void |
setCertificate(java.security.cert.X509Certificate cert)
Sets a binary (ASN.1 DER) X.509 Certificate to which this RetrievalMethod refers. |
void |
setType(java.lang.String type)
Sets the |
| Methods inherited from class com.rsa.swsj.Reference |
addTransform, getContext, getId, getTransformParams, getTransforms, getURI, setId, setURI |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.rsa.swsj.KeyInfo |
getContext |
| Field Detail |
public static final java.lang.String ENCRYPTED_KEY_TYPE
EncryptedKey.
public static final java.lang.String X509CERTIFICATE_TYPE
KeyInfo type as a binary X.509
certificate.
public static final java.lang.String X509DATA_TYPE
X509Data.
public static final java.lang.String DSAKEY_VALUE_TYPE
DSAKeyValue.
public static final java.lang.String RSAKEY_VALUE_TYPE
RSAKeyValue.
| Constructor Detail |
public RetrievalMethod(SWSJContext context)
throws InvalidParameterException
RetrievalMethod object initialized only
with context.
context - object that collects a number of common parameters and
state variables, e.g., JCE provider.
InvalidParameterException - If context is invalid.
public RetrievalMethod(SWSJContext context,
java.lang.String uri)
throws InvalidParameterException
RetrievalMethod object by setting the URI to
uri.
uri - A String object containing the URI in this
RetrievalMethod object.context - An object that collects a number of common parameters and
state variables; for example, JCE provider.
InvalidParameterException - If any parameter is invalid.| Method Detail |
public void setType(java.lang.String type)
throws InvalidParameterException
KeyInfo type of this RetrievalMethod
instance to type. Following are the valid values for this
method: RetrievalMethod.ENCRYPTED_KEY_TYPE
RetrievalMethod.X509CERTIFICATE_TYPE RetrievalMethod.X509DATA_TYPE
RetrievalMethod.DSAKEY_VALUE_TYPE RetrievalMethod.RSAKEY_VALUE_TYPE
type - The identifier data type as a String value.
This attribute is optional for RetrievalMethod.
InvalidParameterException - If type is null or
unsupported.public java.lang.String getType()
KeyInfo type of this RetrievalMethod
instance.
String value.public KeyInfo getKeyInfo()
RetrievalMethod.
public java.security.cert.X509Certificate getCertificate()
public void setCertificate(java.security.cert.X509Certificate cert)
throws InvalidParameterException
cert - The X.509 Certificate to which this RetrievalMethod should
refer.
InvalidParameterException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||