Class OAuth2Server
- java.lang.Object
-
- org.wildfly.security.mechanism.oauth2.OAuth2Server
-
public class OAuth2Server extends Object
An OAuth2 Sasl Server based on RFC-7628.- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description private CallbackHandler
callbackHandler
static String
CONFIG_OPENID_CONFIGURATION_URL
private static String
KV_DELIMITER
private ElytronMessages
log
private Map<String,?>
serverConfig
-
Constructor Summary
Constructors Constructor Description OAuth2Server(CallbackHandler callbackHandler, Map<String,?> serverConfig, ElytronMessages log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]
createErrorMessage()
byte[]
evaluateInitialResponse(OAuth2InitialClientMessage initialClientMessage)
private String
getValue(String key, String keyValuesPart)
OAuth2InitialClientMessage
parseInitialClientMessage(byte[] fromBytes)
-
-
-
Field Detail
-
CONFIG_OPENID_CONFIGURATION_URL
public static final String CONFIG_OPENID_CONFIGURATION_URL
- See Also:
- Constant Field Values
-
KV_DELIMITER
private static final String KV_DELIMITER
- See Also:
- Constant Field Values
-
callbackHandler
private final CallbackHandler callbackHandler
-
log
private ElytronMessages log
-
-
Constructor Detail
-
OAuth2Server
public OAuth2Server(CallbackHandler callbackHandler, Map<String,?> serverConfig, ElytronMessages log)
-
-
Method Detail
-
parseInitialClientMessage
public OAuth2InitialClientMessage parseInitialClientMessage(byte[] fromBytes) throws AuthenticationMechanismException
- Throws:
AuthenticationMechanismException
-
evaluateInitialResponse
public byte[] evaluateInitialResponse(OAuth2InitialClientMessage initialClientMessage) throws AuthenticationMechanismException
- Throws:
AuthenticationMechanismException
-
createErrorMessage
private byte[] createErrorMessage()
-
-