cn.dreampie.security.sign
接口 Signer

所有已知实现类:
CookieSigner

public interface Signer

Permits to sign and verify messages.


方法摘要
 String sign(String message)
          Sign the specified message.
 boolean verify(String message, String signedMessage)
          Verify if the specified message correspond to the signed one.
 

方法详细信息

sign

String sign(String message)
Sign the specified message.

参数:
message - The message to sign.
返回:
The signed message.

verify

boolean verify(String message,
               String signedMessage)
Verify if the specified message correspond to the signed one.

参数:
message - The message to verify.
signedMessage - The signed message.
返回:
True if the message is corresponding to the signed message, false otherwise.


Copyright © 2015. All rights reserved.