Package net.officefloor.web.jwt.jwks
Interface JwksKeyParser
-
- All Known Implementing Classes:
RsaPrivateJwksKeyParserServiceFactory
,RsaPublicJwksKeyParserServiceFactory
,SecretJwksKeyParserServiceFactory
public interface JwksKeyParser
Parses out the JWKSKey
from the content.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.security.Key
parseKey(JwksKeyParserContext context)
Parses theKey
from the JWKkey
JsonNode
.
-
-
-
Method Detail
-
parseKey
java.security.Key parseKey(JwksKeyParserContext context) throws java.lang.Exception
Parses theKey
from the JWKkey
JsonNode
.- Parameters:
context
-JwksKeyParserContext
.- Returns:
Key
ornull
if not able to parseKey
(indicating for anotherJwksKeyParser
to attempt to obtain theKey
).- Throws:
java.lang.Exception
- If failure parsing theKey
.
-
-