You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pl...@apache.org on 2015/09/09 03:36:46 UTC

[25/46] directory-kerby git commit: add JavaDoc for token-provider module

add JavaDoc for token-provider module


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/947c15c9
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/947c15c9
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/947c15c9

Branch: refs/heads/pkinit-support
Commit: 947c15c97f30846f05ef2e229edfddfca25c3cfe
Parents: 19676d9
Author: yaningxu <ya...@gmail.com>
Authored: Mon Aug 24 14:25:03 2015 +0800
Committer: yaningxu <ya...@gmail.com>
Committed: Mon Aug 24 14:25:03 2015 +0800

----------------------------------------------------------------------
 .../apache/kerby/kerberos/provider/token/JwtTokenDecoder.java  | 6 ++++--
 .../java/org/apache/kerby/kerberos/provider/token/JwtUtil.java | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/947c15c9/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtTokenDecoder.java
----------------------------------------------------------------------
diff --git a/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtTokenDecoder.java b/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtTokenDecoder.java
index 9c7eb5f..a99af62 100644
--- a/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtTokenDecoder.java
+++ b/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtTokenDecoder.java
@@ -129,7 +129,8 @@ public class JwtTokenDecoder implements TokenDecoder {
     /**
      * Decrypt the Encrypted JWT
      *
-     * @param encryptedJWT
+     * @throws java.io.IOException
+     * @param encryptedJWT an encrypted JWT
      */
     public void decryptEncryptedJWT(EncryptedJWT encryptedJWT) throws IOException {
         RSADecrypter decrypter = new RSADecrypter(decryptionKey);
@@ -152,7 +153,8 @@ public class JwtTokenDecoder implements TokenDecoder {
     /**
      * verify the Signed JWT
      *
-     * @param signedJWT
+     * @throws java.io.IOException
+     * @param signedJWT a signed JWT
      * @return whether verify success
      */
     public boolean verifySignedJWT(SignedJWT signedJWT) throws IOException {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/947c15c9/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtUtil.java
----------------------------------------------------------------------
diff --git a/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtUtil.java b/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtUtil.java
index ee48e9a..aaa52e4 100644
--- a/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtUtil.java
+++ b/kerby-provider/token-provider/src/main/java/org/apache/kerby/kerberos/provider/token/JwtUtil.java
@@ -31,7 +31,8 @@ public class JwtUtil {
     /**
      * Get jwt claims set from read only jwt claims set
      *
-     * @param readOnlyClaims
+     * @param readOnlyClaims Read only claims
+     * @return Result
      */
     public static JWTClaimsSet from(ReadOnlyJWTClaimsSet readOnlyClaims) {
         JWTClaimsSet result = new JWTClaimsSet(readOnlyClaims);