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