com.baidubce.auth
Class Signature

java.lang.Object
  extended by com.baidubce.auth.Signature

public class Signature
extends Object

The V1 implementation of Signature verification with the BCE signing protocol.

Author:
chenjiayi05

Constructor Summary
Signature()
           
 
Method Summary
 boolean verify(BaseRequest baseRequest, BceCredentials credentials)
          verify the signature with default auth header
 boolean verify(BaseRequest baseRequest, BceCredentials credentials, String authHeader)
          verify the signature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signature

public Signature()
Method Detail

verify

public boolean verify(BaseRequest baseRequest,
                      BceCredentials credentials)
verify the signature with default auth header

Parameters:
baseRequest - origin request info
credentials - identity
Returns:
result

verify

public boolean verify(BaseRequest baseRequest,
                      BceCredentials credentials,
                      String authHeader)
verify the signature

Parameters:
baseRequest - origin request info
credentials - identity
authHeader - auth header
Returns:
result


Copyright © 2020. All rights reserved.