directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Add encoding PaPkAsRep and PaPkAsReq tests.
Date Wed, 16 Dec 2015 03:38:55 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/pkinit-support 948e194f6 -> 3cef3416e


Add encoding PaPkAsRep and PaPkAsReq tests.


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

Branch: refs/heads/pkinit-support
Commit: 3cef3416ecd0986a9d671ff8e9cc9d97e4089228
Parents: 948e194
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Wed Dec 16 11:45:38 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Wed Dec 16 11:45:38 2015 +0800

----------------------------------------------------------------------
 .../kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java     | 6 ++++++
 .../kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java     | 6 ++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/3cef3416/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java
b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java
index 50785ba..6d850db 100644
--- a/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java
+++ b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsRepCodec.java
@@ -109,5 +109,11 @@ public class TestPkinitAnonymousAsRepCodec {
         EncryptedData encryptedData = ticket.getEncryptedEncPart();
         assertThat(encryptedData.getKvno()).isEqualTo(1);
         assertThat(encryptedData.getEType().getValue()).isEqualTo(0x0012);
+
+        // Test encode PaPkAsRep
+        //TO BE FIXED
+//        byte[] encodedPaPkAsRep = paPkAsRep.encode();
+//        PaPkAsRep decodedPaPkAsReq = new PaPkAsRep();
+//        decodedPaPkAsReq.decode(encodedPaPkAsRep);
     }
 }

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/3cef3416/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java
b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java
index 176db5f..003466c 100644
--- a/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java
+++ b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPkinitAnonymousAsReqCodec.java
@@ -104,5 +104,11 @@ public class TestPkinitAnonymousAsReqCodec {
         assertThat(types.get(3).getValue()).isEqualTo(0x0017);
         assertThat(types.get(4).getValue()).isEqualTo(0x0019);
         assertThat(types.get(5).getValue()).isEqualTo(0x001A);
+
+        // Test encode PaPkAsReq
+        //TO BE FIXED
+//        byte[] encodedPaPkAsReq = paPkAsReq.encode();
+//        PaPkAsReq decodedPaPkAsReq = new PaPkAsReq();
+//        decodedPaPkAsReq.decode(encodedPaPkAsReq);
     }
 }


Mime
View raw message