Module one.jpro.platform.auth.core
Class PubSecKeyOptions
java.lang.Object
one.jpro.platform.auth.core.oauth2.PubSecKeyOptions
- All Implemented Interfaces:
Options
Options describing Key stored in PEM format.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPubSecKeyOptions(PubSecKeyOptions other) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the algorithm.The PEM or Secret key buffer.getId()Returns the key identifier.setAlgorithm(String algorithm) Sets the algorithm.The PEM or Secret key buffer.The PEM or Secret key buffer.Sets the key identifier.org.json.JSONObjecttoJSON()Convert all configuration information to JSON format.
-
Constructor Details
-
PubSecKeyOptions
public PubSecKeyOptions()Default constructor -
PubSecKeyOptions
Copy constructor.- Parameters:
other- the options to copy
-
-
Method Details
-
getId
Returns the key identifier.- Returns:
- a string
-
setId
Sets the key identifier.- Parameters:
id- the key identifier- Returns:
- a reference to this, so the API can be used fluently
-
getAlgorithm
Returns the algorithm.- Returns:
- a string
-
setAlgorithm
Sets the algorithm.- Parameters:
algorithm- the algorithm- Returns:
- a reference to this, so the API can be used fluently
-
getBuffer
The PEM or Secret key buffer. When working with secret materials, the material is expected to be encoded inUTF-8. PEM files are expected to beUS_ASCIIas the format uses a base64 encoding for the payload.- Returns:
- the buffer
-
setBuffer
The PEM or Secret key buffer. When working with secret materials, the material is expected to be encoded inUTF-8. PEM files are expected to beUS_ASCIIas the format uses a base64 encoding for the payload.- Parameters:
buffer- the PEM or Secret key string- Returns:
- a reference to this, so the API can be used fluently
-
setBuffer
The PEM or Secret key buffer. When working with secret materials, the material is expected to be encoded inUTF-8. PEM files are expected to beUS_ASCIIas the format uses a base64 encoding for the payload.- Parameters:
buffer- the PEM or Secret key buffer- Returns:
- a reference to this, so the API can be used fluently
-
toJSON
public org.json.JSONObject toJSON()Description copied from interface:OptionsConvert all configuration information to JSON format.
-