Package io.jans.as.model.crypto.binding
Class TokenBindingMessage
- java.lang.Object
-
- io.jans.as.model.crypto.binding.TokenBindingMessage
-
public class TokenBindingMessage extends Object
struct { TokenBinding tokenbindings<132..2^16-1>; } TokenBindingMessage;
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description TokenBindingMessage(byte[] raw)
TokenBindingMessage(String base64urlencoded)
TokenBindingMessage(List<TokenBinding> tokenBindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Function<JsonWebResponse,Void>
createIdTokenTokingBindingPreprocessing(String tokenBindingMessageAsString, String rpTokenBindingMessageHashClaimKey)
TokenBinding
getFirstTokenBindingByType(TokenBindingType type)
static String
getTokenBindingIdHashFromTokenBindingMessage(String tokenBindingMessageAsString, String rpTokenBindingMessageHashClaimKey)
List<TokenBinding>
getTokenBindings()
static void
setCnfClaim(JsonWebResponse jsonWebResponse, String tokenBindingIdHash, String rpTokenBindingMessageHashClaimKey)
String
toString()
-
-
-
Constructor Detail
-
TokenBindingMessage
public TokenBindingMessage(String base64urlencoded) throws TokenBindingParseException
- Throws:
TokenBindingParseException
-
TokenBindingMessage
public TokenBindingMessage(byte[] raw) throws TokenBindingParseException
- Throws:
TokenBindingParseException
-
TokenBindingMessage
public TokenBindingMessage(List<TokenBinding> tokenBindings)
-
-
Method Detail
-
getTokenBindings
public List<TokenBinding> getTokenBindings()
-
getFirstTokenBindingByType
public TokenBinding getFirstTokenBindingByType(TokenBindingType type)
-
createIdTokenTokingBindingPreprocessing
public static com.google.common.base.Function<JsonWebResponse,Void> createIdTokenTokingBindingPreprocessing(String tokenBindingMessageAsString, String rpTokenBindingMessageHashClaimKey) throws TokenBindingParseException
- Throws:
TokenBindingParseException
-
setCnfClaim
public static void setCnfClaim(JsonWebResponse jsonWebResponse, String tokenBindingIdHash, String rpTokenBindingMessageHashClaimKey)
-
getTokenBindingIdHashFromTokenBindingMessage
public static String getTokenBindingIdHashFromTokenBindingMessage(String tokenBindingMessageAsString, String rpTokenBindingMessageHashClaimKey) throws TokenBindingParseException
- Throws:
TokenBindingParseException
-
-