Package com.pingidentity.access
Class JwksEndpointKeyAccessor
java.lang.Object
com.pingidentity.access.JwksEndpointKeyAccessor
This class provides access to PingFederate's JSON web keys. These keys
are exposed at the /pf/JWKS endpoint; partners are able to use the endpoint
contents to verify JWT signatures.
- Since:
- 10.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe JSON web key wrapper object containing the Key ID, JSON web key and the private key. -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentEcKey(String curveName) Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with the current EC signing key associated with the curve name ornullif the EC signing key associated with the requested curve is not present.Deprecated.getCurrentRsaKey(String signingAlgorithm) Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.org.jose4j.jwk.JsonWebKeySetReturns aJsonWebKeySetinstance containing all available decryption keysgetKeyById(String kid) Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with a JWK representing thekidparameter ornullif the JWK is not found.org.jose4j.jwk.JsonWebKeySetReturns aJsonWebKeySetinstance containing all available internal JSON web keysstatic JwksEndpointKeyAccessorReturns a new instance ofJwksEndpointKeyAccessor
-
Method Details
-
newInstance
Returns a new instance ofJwksEndpointKeyAccessor- Returns:
- a new instance of
JwksEndpointKeyAccessor - Since:
- 10.1
-
getCurrentRsaKey
Deprecated.since 11.3,getCurrentRsaKey(String)should be used instead.Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperornull - Since:
- 10.1
-
getCurrentRsaKey
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.- Parameters:
signingAlgorithm- Signing algorithm the RSA key is intended to be used for.- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperintended to be used with the inout signing algorithm ornull - Since:
- 11.3
-
getCurrentEcKey
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with the current EC signing key associated with the curve name ornullif the EC signing key associated with the requested curve is not present.- Parameters:
curveName- the curve name associated with the EC signing key to find- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperornull - Since:
- 10.1
-
getKeyById
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with a JWK representing thekidparameter ornullif the JWK is not found.- Parameters:
kid- the ID of the key to find- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperor null - Since:
- 10.1
-
getSigningJsonWebKeySet
public org.jose4j.jwk.JsonWebKeySet getSigningJsonWebKeySet()Returns aJsonWebKeySetinstance containing all available internal JSON web keys- Returns:
- a
JsonWebKeySetinstance - Since:
- 10.1
-
getDecryptionKeys
public org.jose4j.jwk.JsonWebKeySet getDecryptionKeys()Returns aJsonWebKeySetinstance containing all available decryption keys- Returns:
- a
JsonWebKeySetinstance - Since:
- 11.3
-
getCurrentRsaKey(String)should be used instead.