Package io.fathom.cloud.protobuf.CloudCommons

Examples of io.fathom.cloud.protobuf.CloudCommons.Token


        }

        try {
            byte[] tokenBytes = Base64Coder.decodeWebSafe(tokenString);

            Token token = Token.parseFrom(tokenBytes);

            TokenInfo tokenInfo = token.getTokenInfo();
            byte[] plaintext = tokenInfo.toByteArray();
            if (!getSigner().verify(plaintext, token.getSignature().toByteArray())) {
                log.debug("Token signature verification failed");
                return null;
            }

            if (TokenAuth.hasExpired(tokenInfo)) {
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.CloudCommons.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.