Author: lindner
Date: Wed Aug 3 23:00:42 2011
New Revision: 1153697
URL: http://svn.apache.org/viewvc?rev=1153697&view=rev
Log:
Patch from Jesse Ciancetta | make the decrypt method in
BlobCrypterSecurityToken public so it can be used from external callers.
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java
URL:
http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java?rev=1153697&r1=1153696&r2=1153697&view=diff
==============================================================================
---
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java
(original)
+++
shindig/trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java
Wed Aug 3 23:00:42 2011
@@ -70,8 +70,8 @@ public class BlobCrypterSecurityToken ex
}
/**
- * Decrypt and verify a token. Note this is not public, use
BlobCrypterSecurityTokenCodec
- * instead.
+ * Decrypt and verify a token. Note that this is a low level API dealing
directly with encrypted
+ * data, for a higher level API consider using the
BlobCrypterSecurityTokenCodec instead.
*
* @param crypter crypter to use for decryption
* @param container container that minted the token
@@ -81,7 +81,7 @@ public class BlobCrypterSecurityToken ex
*
* @throws BlobCrypterException
*/
- static BlobCrypterSecurityToken decrypt(BlobCrypter crypter, String
container, String domain,
+ public static BlobCrypterSecurityToken decrypt(BlobCrypter crypter, String
container, String domain,
String token, String activeUrl) throws BlobCrypterException {
Map<String, String> values = crypter.unwrap(token,
MAX_TOKEN_LIFETIME_SECS);
BlobCrypterSecurityToken t = new BlobCrypterSecurityToken(crypter,
container, domain);