com.baidubce.auth
Class Signature
java.lang.Object
com.baidubce.auth.Signature
public class Signature
- extends Object
The V1 implementation of Signature verification with the BCE signing protocol.
- Author:
- chenjiayi05
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Signature
public Signature()
verify
public boolean verify(BaseRequest baseRequest,
BceCredentials credentials)
- verify the signature with default auth header
- Parameters:
baseRequest - origin request infocredentials - identity
- Returns:
- result
verify
public boolean verify(BaseRequest baseRequest,
BceCredentials credentials,
String authHeader)
- verify the signature
- Parameters:
baseRequest - origin request infocredentials - identityauthHeader - auth header
- Returns:
- result
Copyright © 2020. All rights reserved.