Package com.netscape.cmscore.request
Class Request
java.lang.Object
com.netscape.cmscore.request.Request
- All Implemented Interfaces:
IRequest
,Serializable
Request - implementation of the IRequest interface. This
version is returned by ARequestQueue (and its derivatives)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Logger
protected String
protected ExtDataHashtable
<Object> protected String
protected RequestId
protected RequestStatus
protected String
protected String
protected String
protected String
Fields inherited from interface com.netscape.certsrv.request.IRequest
AGENT_PARAMS, ASYMKEY_GENERATION_REQUEST, ATTR_APPROVE_AGENTS, ATTR_REQUEST_OWNER, ATTR_REQUEST_STATUS, ATTR_REQUEST_TYPE, ATTR_SOURCE_ID, AUTH_TOKEN, AUTH_TOKEN_PREFIX, AUTHORITY_ID, CA_CERT, CACERTCHAIN, CEP_CERT, CERT_FILTER, CERT_INFO, CERT_STATUS, CERT_TYPE, CLA_CERT4CRL_REQUEST, CLA_UNCERT4CRL_REQUEST, CLIENT_CERT, CMC_RECIPIENTNONCE, CMC_REGINFO, CMC_REQIDS, CMC_SENDERNONCE, CMC_TRANSID, CMCREVOKE_REQUEST, CRL, CRL_PUBLISH_ERROR, CRL_PUBLISH_STATUS, CRL_UPDATE_ERROR, CRL_UPDATE_STATUS, CRMF_REQID, CTX_CERT_REQUEST, DOGETCACHAIN, ENROLLMENT_REQUEST, ERROR, ERROR_CODE, ERRORS, FINGERPRINTS, GETCACHAIN_REQUEST, GETCERT_STATUS_REQUEST, GETCERTS_FOR_CHALLENGE_REQUEST, GETCERTS_REQUEST, GETCRL_REQUEST, GETREVOCATIONINFO_REQUEST, HTTP_HEADERS, HTTP_PARAMS, ISSUED_CERTS, ISSUERDN, KEY_ARCHIVAL_REQUEST, KEY_GEN_ALGORITHM, KEY_GEN_SIZE, KEY_GEN_TRANS_WRAPPED_SESSION_KEY, KEY_GEN_USAGES, KEY_RECOVERY_REQUEST, KEYARCHIVAL_REQUEST, KEYRECOVERY_REQUEST, NETKEY_ATTR_ARCHIVE_FLAG, NETKEY_ATTR_CUID, NETKEY_ATTR_DRMTRANS_DES_KEY, NETKEY_ATTR_ENC_PRIVKEY_FLAG, NETKEY_ATTR_KEY_EC_CURVE, NETKEY_ATTR_KEY_SIZE, NETKEY_ATTR_KEY_TYPE, NETKEY_ATTR_KEYID, NETKEY_ATTR_SERVERSIDE_MUSCLE_FLAG, NETKEY_ATTR_USER_CERT, NETKEY_ATTR_USERID, NETKEY_KEYGEN_REQUEST, NETKEY_KEYRECOVERY_REQUEST, OBJECT_SIGNING, OBJECT_SIGNING_CERT, OCSP_CERT, OLD_CERTS, OLD_SERIALS, OTHER_CERT, PKCS10_REQID, PROFILE_ID, RA_CERT, REALM, REMOTE_REQID, REMOTE_SERVICE_AUTHORITY, REMOTE_STATUS, RENEWAL_REQUEST, REQ_FORMAT, REQ_STATUS, REQ_TYPE, REQ_VERSION, REQUEST_ALGORITHM_OID, REQUEST_ALGORITHM_PARAMS, REQUEST_ARCHIVE_OPTIONS, REQUEST_KEY, REQUEST_SECURITY_DATA, REQUEST_SESSION_KEY, REQUEST_SUBJECT_NAME, REQUEST_TRANSPORT_CERT, REQUEST_TRUSTEDMGR_PRIVILEGE, REQUESTOR_AGENT, REQUESTOR_COMMENTS, REQUESTOR_EE, REQUESTOR_EMAIL, REQUESTOR_KRA, REQUESTOR_NAME, REQUESTOR_NETKEY_RA, REQUESTOR_PHONE, REQUESTOR_RA, REQUESTOR_TYPE, RES_ERROR, RES_SUCCESS, RESULT, REVOCATION_CHECK_CHALLENGE_REQUEST, REVOCATION_REQUEST, REVOKED_CERT_RECORDS, REVOKED_CERTS, REVOKED_REASON, ROUTER_CERT, SECURITY_DATA_ALGORITHM, SECURITY_DATA_CLIENT_KEY_ID, SECURITY_DATA_ENROLLMENT_REQUEST, SECURITY_DATA_IV_STRING_IN, SECURITY_DATA_IV_STRING_OUT, SECURITY_DATA_PASS_WRAPPED_DATA, SECURITY_DATA_PL_ENCRYPTION_OID, SECURITY_DATA_PL_WRAPPED, SECURITY_DATA_PL_WRAPPING_NAME, SECURITY_DATA_RECOVERY_REQUEST, SECURITY_DATA_SESS_PASS_PHRASE, SECURITY_DATA_SESS_WRAPPED_DATA, SECURITY_DATA_STATUS, SECURITY_DATA_STRENGTH, SECURITY_DATA_TRANS_SESS_KEY, SECURITY_DATA_TYPE, SERVER_ATTRS, SERVER_CERT, SERVER_SIDE_KEYGEN_ENROLL_ENABLE_ARCHIVAL, SMIME, SSK_STAGE, SSK_STAGE_KEY_RETRIEVE, SSK_STAGE_KEYGEN, SSL_CLIENT, SVCERRORS, SYMKEY_GENERATION_REQUEST, UNREVOCATION_REQUEST, UPDATED_BY, USER_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyContents
(IRequest req) this isn't that efficient but will do for now.void
deleteExtData
(String type) Removes the value of an extdata attribute.Gets context of this request.Gets the time this request was created.Gets localized error message from connector transfer.getErrorCode
(Locale locale) Get error codeRetrieves an authtoken.Retrieves a BigInteger value.Retrieves an array of BigIntegersboolean
getExtDataInBoolean
(String key, boolean defVal) Gets boolean value for given type or default value if attribute is absent.boolean
getExtDataInBoolean
(String prefix, String type, boolean defVal) Gets extdata boolean value for given type or default value if attribute is absent for this request with this prefix.byte[]
Retrieves the data, which should be base64 encoded as a byte array.org.mozilla.jss.netscape.security.x509.X509CertImpl
getExtDataInCert
(String key) Retrieves the data, which should be base64 encoded as a byte array.org.mozilla.jss.netscape.security.x509.X509CertImpl[]
Retrieves an array of X509CertImpl.org.mozilla.jss.netscape.security.x509.CertificateExtensions
Retrieves the CertificateExtensions associated with the key.org.mozilla.jss.netscape.security.x509.X509CertInfo
Retrieves the data, which should be base64 encoded as a byte array.org.mozilla.jss.netscape.security.x509.X509CertInfo[]
Retrieves an array of X509CertInfo.org.mozilla.jss.netscape.security.x509.CertificateSubjectName
Retrieves the CertificateSubjectName associated with the key.Returns the Hashtable value for the String key.Retrieves an integer value.Integer[]
Retrieves an array of Integersorg.mozilla.jss.netscape.security.x509.RevokedCertImpl[]
Retrieves an array of RevokedCertImpl.getExtDataInString
(String key) Returns the String value stored for the String key.getExtDataInString
(String key, String subkey) Helper method to retrieve an individual value from a Hashtable value.String[]
Retrieves an array of Strings stored with the key.Returns a vector of strings for the key.Returns all the keys stored in ExtDataGets the time this request was last modified (defined as updated in the queue) (See ARequestQueue.update)getRealm()
Get realmGets the primary identifier for this request.Gets the current owner of this request.Gets the current state of this request.Gets the type of this request.Gets the version of this request.Gets the "sourceId" for the request.boolean
Checks whether the key is storing a simple String value, or a complex (Vector/hashtable) structure.boolean
Gets status of connector transfer.protected boolean
protected boolean
isValidExtDataKey
(String key) This function used to check that the keys obeyed LDAP attribute name syntax rules.void
setContext
(String ctx) Sets context of this request.void
setCreationTime
(Date date) boolean
setExtData
(String key, byte[] data) Stores a byte array as base64 encoded textboolean
setExtData
(String key, IAuthToken data) Stores an AuthToken the same as a Hashtable.boolean
setExtData
(String key, Integer value) Helper method to store an Integer value.boolean
setExtData
(String key, Integer[] data) Stores an array of Integersboolean
setExtData
(String key, String value) Sets an Extended Data string-key string-value pair.boolean
setExtData
(String key, String[] values) Stores an array of Strings in ExtData.boolean
setExtData
(String key, String subkey, String value) Helper method to add subkey/value pair to a ExtData hashtable.boolean
setExtData
(String key, Throwable e) Helper method to store an exception.boolean
setExtData
(String key, BigInteger value) Helper method to store a BigInteger value.boolean
setExtData
(String key, BigInteger[] data) Stores an array of BigIntegersboolean
setExtData
(String key, Hashtable<String, String> value) Sets an Extended Data string-key string-value pair.boolean
setExtData
(String key, Vector<?> stringVector) Stores the contents of the String Vector in ExtData.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.CertificateExtensions data) Stores a CertificateExtensions in extdata.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.CertificateSubjectName data) Stores a CertificateSubjectName in extdata.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] data) Stores an array of RevokedCertImpls as a base64 encoded text.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertImpl data) Stores a X509CertImpl as base64 encoded text using the getEncode() method.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertImpl[] data) Stores an array of X509CertImpls as a base64 encoded text.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertInfo data) Stores a X509CertInfo as base64 encoded text using the getEncodedInfo() method.boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertInfo[] data) Stores an array of X509CertInfos as a base64 encoded text.void
setModificationTime
(Date date) void
Set the realmvoid
Sets the current owner of this request.void
Sets status of this request.void
setRequestType
(String type) Sets the type or this request.void
setSourceId
(String id) Sets the "sourceId" for this request.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mRequestId
-
mRequestStatus
-
mSourceId
-
mSource
-
mOwner
-
mRequestType
-
mContext
-
realm
-
mExtData
-
-
Constructor Details
-
Request
-
-
Method Details
-
getRequestId
Description copied from interface:IRequest
Gets the primary identifier for this request.- Specified by:
getRequestId
in interfaceIRequest
- Returns:
- request id
-
getRequestStatus
Description copied from interface:IRequest
Gets the current state of this request.- Specified by:
getRequestStatus
in interfaceIRequest
- Returns:
- request status
-
setRequestStatus
Description copied from interface:IRequest
Sets status of this request.- Specified by:
setRequestStatus
in interfaceIRequest
- Parameters:
s
- request status
-
isSuccess
-
getError
-
getErrorCode
Description copied from interface:IRequest
Get error code- Specified by:
getErrorCode
in interfaceIRequest
- Parameters:
locale
- request locale- Returns:
- error code
-
getSourceId
Description copied from interface:IRequest
Gets the "sourceId" for the request. The sourceId is assigned by the originator of the request (for example, the EE servlet or the RA servlet.The sourceId should be unique so that it can be used to retrieve request later without knowing the locally assigned primary id (RequestID)
- Specified by:
getSourceId
in interfaceIRequest
- Returns:
- the sourceId value (or null if none has been set)
-
setSourceId
Description copied from interface:IRequest
Sets the "sourceId" for this request. The request must be updated in the database for this change to take effect. This can be done by calling ARequestQueue.update() or by performing one of the other operations like processRequest or approveRequest.- Specified by:
setSourceId
in interfaceIRequest
- Parameters:
id
- source id for this request
-
getRequestOwner
Description copied from interface:IRequest
Gets the current owner of this request.- Specified by:
getRequestOwner
in interfaceIRequest
- Returns:
- request owner
-
setRequestOwner
Description copied from interface:IRequest
Sets the current owner of this request.- Specified by:
setRequestOwner
in interfaceIRequest
- Parameters:
id
- The new owner of this request. If this value is set to null there will be no current owner
-
getRequestType
Description copied from interface:IRequest
Gets the type of this request.- Specified by:
getRequestType
in interfaceIRequest
- Returns:
- request type
-
setRequestType
Description copied from interface:IRequest
Sets the type or this request.- Specified by:
setRequestType
in interfaceIRequest
- Parameters:
type
- request type
-
getRequestVersion
Description copied from interface:IRequest
Gets the version of this request.- Specified by:
getRequestVersion
in interfaceIRequest
- Returns:
- request version
-
getCreationTime
Description copied from interface:IRequest
Gets the time this request was created.- Specified by:
getCreationTime
in interfaceIRequest
- Returns:
- request creation time
-
setCreationTime
- Specified by:
setCreationTime
in interfaceIRequest
-
getContext
Description copied from interface:IRequest
Gets context of this request.- Specified by:
getContext
in interfaceIRequest
- Returns:
- request context
-
setContext
Description copied from interface:IRequest
Sets context of this request.- Specified by:
setContext
in interfaceIRequest
- Parameters:
ctx
- request context
-
getModificationTime
Description copied from interface:IRequest
Gets the time this request was last modified (defined as updated in the queue) (See ARequestQueue.update)- Specified by:
getModificationTime
in interfaceIRequest
- Returns:
- request last modification time
-
setModificationTime
- Specified by:
setModificationTime
in interfaceIRequest
-
copyContents
this isn't that efficient but will do for now.- Specified by:
copyContents
in interfaceIRequest
- Parameters:
req
- another request
-
isValidExtDataKey
This function used to check that the keys obeyed LDAP attribute name syntax rules. Keys are being encoded now, so it is changed to just filter out null and empty string keys.- Parameters:
key
- The key to check- Returns:
- false if invalid
-
isValidExtDataHashtableValue
-
setExtData
Description copied from interface:IRequest
Sets an Extended Data string-key string-value pair. All keys are lower cased because LDAP does not preserve case.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The extended data keyvalue
- The extended data value- Returns:
- false if key is invalid.
-
setExtData
Description copied from interface:IRequest
Sets an Extended Data string-key string-value pair. The key and hashtable keys are all lowercased because LDAP does not preserve case.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The extended data keyvalue
- The extended data value the Hashtable contains an illegal key.- Returns:
- false if the key or hashtable keys are invalid
-
isSimpleExtDataValue
Description copied from interface:IRequest
Checks whether the key is storing a simple String value, or a complex (Vector/hashtable) structure.- Specified by:
isSimpleExtDataValue
in interfaceIRequest
- Parameters:
key
- The key to check for.- Returns:
- True if the key maps to a string. False if it maps to a hashtable.
-
getExtDataInString
Description copied from interface:IRequest
Returns the String value stored for the String key. Returns null if not found. Throws exception if key stores a complex data structure (Vector/Hashtable).- Specified by:
getExtDataInString
in interfaceIRequest
- Parameters:
key
- The key to lookup (case-insensitive)- Returns:
- The value associated with the key. null if not found or if the key is associated with a non-string value.
-
getExtDataInHashtable
Description copied from interface:IRequest
Returns the Hashtable value for the String key. Returns null if not found. Throws exception if the key stores a String value. The Hashtable returned is actually a subclass of Hashtable that lowercases all keys used to access the hashtable. Its purpose is to to make lookups seemless, but be aware it is not a normal hashtable and might behave strangely in some cases (e.g., iterating keys)- Specified by:
getExtDataInHashtable
in interfaceIRequest
- Parameters:
key
- The key to lookup (case-insensitive)- Returns:
- The hashtable value associated with the key. null if not found or if the key is associated with a string-value.
-
getExtDataKeys
Description copied from interface:IRequest
Returns all the keys stored in ExtData- Specified by:
getExtDataKeys
in interfaceIRequest
- Returns:
- Enumeration of all the keys.
-
deleteExtData
Description copied from interface:IRequest
Removes the value of an extdata attribute.- Specified by:
deleteExtData
in interfaceIRequest
- Parameters:
type
- key to delete
-
setExtData
Description copied from interface:IRequest
Helper method to add subkey/value pair to a ExtData hashtable. If the hashtable it exists, the subkey/value are added to it. Otherwise a new hashtable is created. The key and subkey are lowercased because LDAP does not preserve case.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The top level keysubkey
- The hashtable data keyvalue
- The hashtable value- Returns:
- False if the key or subkey are invalid
-
getExtDataInString
Description copied from interface:IRequest
Helper method to retrieve an individual value from a Hashtable value.- Specified by:
getExtDataInString
in interfaceIRequest
- Parameters:
key
- the ExtData keysubkey
- the key in the Hashtable value (case insensitive)- Returns:
- the value corresponding to the key/subkey
-
setExtData
Description copied from interface:IRequest
Helper method to store an Integer value. It converts the integer value to a String and stores it.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- the ExtData keyvalue
- the Integer to store (as a String)- Returns:
- False if the key or value are invalid
-
getExtDataInInteger
Description copied from interface:IRequest
Retrieves an integer value. Returns null if not found or the value can't be represented as an Integer.- Specified by:
getExtDataInInteger
in interfaceIRequest
- Parameters:
key
- The ExtData key to lookup- Returns:
- The integer value or null if not possible.
-
setExtData
Description copied from interface:IRequest
Stores an array of Integers- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The extdata keydata
- The array of Integers to store- Returns:
- false if the key is invalid
-
getExtDataInIntegerArray
Description copied from interface:IRequest
Retrieves an array of Integers- Specified by:
getExtDataInIntegerArray
in interfaceIRequest
- Parameters:
key
- The extdata key- Returns:
- The array of Integers or null on error.
-
setExtData
Description copied from interface:IRequest
Helper method to store a BigInteger value. It converts the integer value to a String and stores it.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- the ExtData keyvalue
- the BigInteger to store (as a String)- Returns:
- False if the key or value are invalid
-
getExtDataInBigInteger
Description copied from interface:IRequest
Retrieves a BigInteger value. Returns null if not found or the value can't be represented as a BigInteger.- Specified by:
getExtDataInBigInteger
in interfaceIRequest
- Parameters:
key
- The ExtData key to lookup- Returns:
- The integer value or null if not possible.
-
setExtData
Description copied from interface:IRequest
Stores an array of BigIntegers- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The extdata keydata
- The array of BigIntegers to store- Returns:
- false if the key is invalid
-
getExtDataInBigIntegerArray
Description copied from interface:IRequest
Retrieves an array of BigIntegers- Specified by:
getExtDataInBigIntegerArray
in interfaceIRequest
- Parameters:
key
- The extdata key- Returns:
- The array of BigIntegers or null on error.
-
setExtData
Description copied from interface:IRequest
Helper method to store an exception. It actually stores the e.toString() value.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData key to store undere
- The throwable to store- Returns:
- False if the key is invalid.
-
setExtData
Description copied from interface:IRequest
Stores a byte array as base64 encoded text- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The byte array to store- Returns:
- False if the key is invalid.
-
getExtDataInByteArray
Description copied from interface:IRequest
Retrieves the data, which should be base64 encoded as a byte array.- Specified by:
getExtDataInByteArray
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- The data, or null if an error occurs.
-
setExtData
Description copied from interface:IRequest
Stores a X509CertImpl as base64 encoded text using the getEncode() method.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- certificate- Returns:
- False if the key is invalid.
-
getExtDataInCert
Description copied from interface:IRequest
Retrieves the data, which should be base64 encoded as a byte array.- Specified by:
getExtDataInCert
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- The data, or null if an error occurs.
-
setExtData
Description copied from interface:IRequest
Stores an array of X509CertImpls as a base64 encoded text.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The array of certs to store- Returns:
- False if the key or data is invalid.
-
getExtDataInCertArray
Description copied from interface:IRequest
Retrieves an array of X509CertImpl.- Specified by:
getExtDataInCertArray
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- Array of certs, or null if not found or invalid data.
-
setExtData
Description copied from interface:IRequest
Stores a X509CertInfo as base64 encoded text using the getEncodedInfo() method.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- certificate- Returns:
- False if the key is invalid.
-
getExtDataInCertInfo
Description copied from interface:IRequest
Retrieves the data, which should be base64 encoded as a byte array.- Specified by:
getExtDataInCertInfo
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- The data, or null if an error occurs.
-
setExtData
Description copied from interface:IRequest
Stores an array of X509CertInfos as a base64 encoded text.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The array of cert infos to store- Returns:
- False if the key or data is invalid.
-
getExtDataInCertInfoArray
Description copied from interface:IRequest
Retrieves an array of X509CertInfo.- Specified by:
getExtDataInCertInfoArray
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- Array of cert infos, or null if not found or invalid data.
-
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] data) Description copied from interface:IRequest
Stores an array of RevokedCertImpls as a base64 encoded text.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The array of cert infos to store- Returns:
- False if the key or data is invalid.
-
getExtDataInRevokedCertArray
public org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] getExtDataInRevokedCertArray(String key) Description copied from interface:IRequest
Retrieves an array of RevokedCertImpl.- Specified by:
getExtDataInRevokedCertArray
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- Array of cert infos, or null if not found or invalid data.
-
setExtData
Description copied from interface:IRequest
Stores the contents of the String Vector in ExtData. TODO - as soon as we're allowed to use JDK5 this should be changed to use Vectordata. Note that modifications to the Vector are not automatically reflected after it is stored. You must call set() again to make the changes. - Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The extdata key to storestringVector
- A vector of Strings to store- Returns:
- False on key error or invalid data.
-
getExtDataInStringVector
Description copied from interface:IRequest
Returns a vector of strings for the key. Note that the returned vector, if modified, does not make changes in ExtData. You must call setExtData() to propogate changes back into ExtData.- Specified by:
getExtDataInStringVector
in interfaceIRequest
- Parameters:
key
- The extdata key- Returns:
- A Vector of strings, or null on error.
-
getExtDataInBoolean
Description copied from interface:IRequest
Gets boolean value for given type or default value if attribute is absent.- Specified by:
getExtDataInBoolean
in interfaceIRequest
- Parameters:
key
- attribute typedefVal
- default attribute value- Returns:
- attribute value
-
getExtDataInBoolean
Description copied from interface:IRequest
Gets extdata boolean value for given type or default value if attribute is absent for this request with this prefix.- Specified by:
getExtDataInBoolean
in interfaceIRequest
- Parameters:
prefix
- request prefixtype
- attribute typedefVal
- default attribute value- Returns:
- attribute value
-
setExtData
Description copied from interface:IRequest
Stores an AuthToken the same as a Hashtable.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The authtoken to store- Returns:
- False if the key or data is invalid.
-
getExtDataInAuthToken
Description copied from interface:IRequest
Retrieves an authtoken.- Specified by:
getExtDataInAuthToken
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- AuthToken, or null if not found or invalid data.
-
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.CertificateExtensions data) Description copied from interface:IRequest
Stores a CertificateExtensions in extdata.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The CertificateExtensions to store- Returns:
- False if the key or data is invalid.
-
getExtDataInCertExts
public org.mozilla.jss.netscape.security.x509.CertificateExtensions getExtDataInCertExts(String key) Description copied from interface:IRequest
Retrieves the CertificateExtensions associated with the key.- Specified by:
getExtDataInCertExts
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- the object, or null if not found or invalid data.
-
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.CertificateSubjectName data) Description copied from interface:IRequest
Stores a CertificateSubjectName in extdata.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- The ExtData keydata
- The CertificateSubjectName to store- Returns:
- False if the key or data is invalid.
-
getExtDataInCertSubjectName
public org.mozilla.jss.netscape.security.x509.CertificateSubjectName getExtDataInCertSubjectName(String key) Description copied from interface:IRequest
Retrieves the CertificateSubjectName associated with the key.- Specified by:
getExtDataInCertSubjectName
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- the object, or null if not found or invalid data.
-
setExtData
Description copied from interface:IRequest
Stores an array of Strings in ExtData. The indices of the array are used as subkeys.- Specified by:
setExtData
in interfaceIRequest
- Parameters:
key
- the ExtData keyvalues
- the array of string values to store- Returns:
- False if the key is invalid
-
getExtDataInStringArray
Description copied from interface:IRequest
Retrieves an array of Strings stored with the key. This only works if the data was stored as an array. If the data is not correct, this method will return null.- Specified by:
getExtDataInStringArray
in interfaceIRequest
- Parameters:
key
- The ExtData key- Returns:
- The value. Null if not found or the data isn't an array.
-
asIAttrSet
- Specified by:
asIAttrSet
in interfaceIRequest
- Returns:
- IAttrSet wrapper with basic "get" functionality.
-
getRealm
-
setRealm
-