C
- The rich type that represents the credentials.public interface CredentialsParser<C>
Authorization
HTTP header. It should be
implemented for each authorization type that is wanted to be richly supported.Modifier and Type | Method and Description |
---|---|
boolean |
canParse(String type)
Whether this parser parses the given authorization type.
|
C |
parse(String credentials)
Parse the provided credentials into a rich representation.
|
boolean canParse(String type)
type
- The type.AuthorizationHeader.getType()
C parse(String credentials) throws MalformedHeaderException
credentials
- The credentials string.MalformedHeaderException
- If the credentials are malformed.AuthorizationHeader.getCredentials()
Copyright © 2010-2018, ForgeRock All Rights Reserved.