Class JwtParserManager
java.lang.Object
com.verisign.epp.codec.authtoken.v01.JwtParserManager
This class initializes and maintains a cache of JWT Parsers.
These parsers can be looked up by either public key or alias.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JwtParserManagerGets the Singleton instance, which will throw theEPPConExceptionif there is an error with the Singleton instantiation.io.jsonwebtoken.JwtParserRetrieves a thread-safe JwtParser by its alias.io.jsonwebtoken.JwtParserRetrieves a thread-safe JwtParser by its publicKey.getPrivateKey(String alias) Return private key by its alias.Retrieve a list of public keysvoidBuilds the JwtParser instances using the latest public keys from the keystore manager.
-
Method Details
-
getInstance
Gets the Singleton instance, which will throw theEPPConExceptionif there is an error with the Singleton instantiation.- Returns:
- Singleton instance of
JwtParserManager - Throws:
EPPConException- Error creating Singleton instance
-
initParsers
public void initParsers()Builds the JwtParser instances using the latest public keys from the keystore manager. -
getParser
Retrieves a thread-safe JwtParser by its alias.- Parameters:
aKeyAlias- The key alias in the keystore- Returns:
- The JwtParser, or null if no key exists for that alias
-
getParser
Retrieves a thread-safe JwtParser by its publicKey.- Parameters:
aPubKey- public key- Returns:
- The JwtParser, or null if no key exists for that alias
-
getPublicKeys
Retrieve a list of public keys- Returns:
-
getPrivateKey
Return private key by its alias.- Parameters:
alias- alias of the private key in JKS- Returns:
- Private key
- Throws:
EPPException- No private key with the given alias found
-