Class TokenTrust.Pinned

java.lang.Object
org.cloudburstmc.netty.util.nethernet.TokenTrust.Pinned
All Implemented Interfaces:
TokenTrust
Enclosing interface:
TokenTrust

public static final class TokenTrust.Pinned extends Object implements TokenTrust
Accepts a token signed by, and naming, one of a fixed set of keys.
  • Method Details

    • claims

      public org.jose4j.jwt.JwtClaims claims(Identity identity) throws Exception
      Specified by:
      claims in interface TokenTrust
      Parameters:
      identity - The identity taken from the offer
      Returns:
      The token's claims, which must include cpk
      Throws:
      Exception - If the token is not trusted