Interface IArgBlock
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ArgBlock
This interface defines the abstraction for the generic collection
of attributes indexed by string names.
Set of cooperating implementations of this interface may exploit
dot-separated attribute names to provide seamless access to the
attributes of attribute value which also implements AttrSet
interface as if it was direct attribute of the container
E.g., ((AttrSet)container.get("x")).get("y") is equivalent to
container.get("x.y");
- Version:
- $Revision$, $Date$
-
Method Summary
Modifier and TypeMethodDescriptionaddBigIntegerValue(String n, BigInteger v, int radix) Adds integer-type arguments to this block.addBooleanValue(String n, boolean v) Adds boolean-type arguments to this block.addIntegerValue(String n, int v) Adds integer-type arguments to this block.addLongValue(String n, long v) Adds long-type arguments to this block.addStringValue(String n, String v) Adds string-based value into this argument block.voidDeletes argument by the given key.elements()Retrieves a list of argument keys.Retrieves argument.Retrieves a list of argument keys.Retrieves argument value as objectRetrieves argument value as objectRetrieves argument value as big integer.getValueAsBigInteger(String n, BigInteger def) Retrieves argument value as big integer.booleangetValueAsBoolean(String name) Gets boolean value.booleangetValueAsBoolean(String name, boolean def) Gets boolean value.intRetrieves argument value as integer.intgetValueAsInt(String n, int def) Retrieves argument value as integer.getValueAsKeyGenInfo(String name, KeyGenInfo def) Gets KeyGenInfoorg.mozilla.jss.netscape.security.pkcs.PKCS10getValueAsPKCS10(String name, boolean checkheader) Retrieves PKCS10org.mozilla.jss.netscape.security.pkcs.PKCS10getValueAsPKCS10(String name, boolean checkheader, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) Retrieves PKCS10org.mozilla.jss.netscape.security.pkcs.PKCS10getValueAsRawPKCS10(String name) Gets PKCS10 request.org.mozilla.jss.netscape.security.pkcs.PKCS10getValueAsRawPKCS10(String name, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) Gets PKCS10 request.Retrieves argument value as string.getValueAsString(String n, String def) Retrieves argument value as string.org.mozilla.jss.netscape.security.pkcs.PKCS10getValuePKCS10(String name, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) Retrieves PKCS10booleanChecks if this argument block contains the given key.voidSets argument into this block.
-
Method Details
-
isValuePresent
Checks if this argument block contains the given key.- Parameters:
n- key- Returns:
- true if key is present
-
addStringValue
-
getValueAsString
Retrieves argument value as string.- Parameters:
n- key- Returns:
- argument value as string
- Throws:
EBaseException- failed to retrieve value
-
getValueAsString
-
getValueAsInt
Retrieves argument value as integer.- Parameters:
n- key- Returns:
- argument value as int
- Throws:
EBaseException- failed to retrieve value
-
getValueAsInt
Retrieves argument value as integer.- Parameters:
n- keydef- default value to be returned if key is not present- Returns:
- argument value as int
-
getValueAsBigInteger
Retrieves argument value as big integer.- Parameters:
n- key- Returns:
- argument value as big integer
- Throws:
EBaseException- failed to retrieve value
-
getValueAsBigInteger
Retrieves argument value as big integer.- Parameters:
n- keydef- default value to be returned if key is not present- Returns:
- argument value as big integer
-
getValue
Retrieves argument value as object- Parameters:
n- key- Returns:
- argument value as object
- Throws:
EBaseException- failed to retrieve value
-
getValue
-
getValueAsBoolean
Gets boolean value. They should be "true" or "false".- Parameters:
name- name of the input type- Returns:
- boolean type:
trueorfalse - Throws:
EBaseException- failed to retrieve value
-
getValueAsBoolean
Gets boolean value. They should be "true" or "false".- Parameters:
name- name of the input typedef- Default value to return.- Returns:
- boolean type:
trueorfalse
-
getValueAsKeyGenInfo
Gets KeyGenInfo- Parameters:
name- name of the input typedef- default value to return- Returns:
- KeyGenInfo object
- Throws:
EBaseException- On error.
-
getValueAsRawPKCS10
org.mozilla.jss.netscape.security.pkcs.PKCS10 getValueAsRawPKCS10(String name) throws EBaseException Gets PKCS10 request. This pkcs10 attribute does not contain header information.- Parameters:
name- name of the input type- Returns:
- pkcs10 request
- Throws:
EBaseException- failed to retrieve value
-
getValueAsRawPKCS10
org.mozilla.jss.netscape.security.pkcs.PKCS10 getValueAsRawPKCS10(String name, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) throws EBaseException Gets PKCS10 request. This pkcs10 attribute does not contain header information.- Parameters:
name- name of the input typedef- default PKCS10- Returns:
- pkcs10 request
- Throws:
EBaseException- failed to retrieve value
-
getValueAsPKCS10
org.mozilla.jss.netscape.security.pkcs.PKCS10 getValueAsPKCS10(String name, boolean checkheader) throws EBaseException Retrieves PKCS10- Parameters:
name- name of the input typecheckheader- true if header must be present- Returns:
- PKCS10 object
- Throws:
EBaseException- failed to retrieve value
-
getValueAsPKCS10
org.mozilla.jss.netscape.security.pkcs.PKCS10 getValueAsPKCS10(String name, boolean checkheader, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) throws EBaseException Retrieves PKCS10- Parameters:
name- name of the input typecheckheader- true if header must be presentdef- default PKCS10- Returns:
- PKCS10 object
- Throws:
EBaseException- on error
-
getValuePKCS10
org.mozilla.jss.netscape.security.pkcs.PKCS10 getValuePKCS10(String name, org.mozilla.jss.netscape.security.pkcs.PKCS10 def) throws EBaseException Retrieves PKCS10- Parameters:
name- name of the input typedef- default PKCS10- Returns:
- PKCS10 object
- Throws:
EBaseException- on error
-
elements
Enumeration<String> elements()Retrieves a list of argument keys.- Returns:
- a list of string-based keys
-
addLongValue
-
addIntegerValue
-
addBooleanValue
-
addBigIntegerValue
Adds integer-type arguments to this block.- Parameters:
n- keyv- valueradix- radix- Returns:
- value
-
set
-
get
-
delete
-
getElements
Enumeration<String> getElements()Retrieves a list of argument keys.- Returns:
- a list of string-based keys
-