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 the test of decoding the PaPkAsReq.
Date Mon, 14 Dec 2015 06:14:46 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/pkinit-support a206450f3 -> 4d6602522


Add the test of decoding the PaPkAsReq.


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

Branch: refs/heads/pkinit-support
Commit: 4d66025227667bf5363b3ceec3a09891090d3d98
Parents: a206450
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Mon Dec 14 14:21:13 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Mon Dec 14 14:21:13 2015 +0800

----------------------------------------------------------------------
 .../kerberos/kerb/codec/TestPaPkAsRep.java      | 41 ++++++++++++++++++++
 1 file changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4d660252/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPaPkAsRep.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPaPkAsRep.java
b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPaPkAsRep.java
new file mode 100644
index 0000000..3afda96
--- /dev/null
+++ b/kerby-kerb/kerb-core/src/main/test/java/org/apache/kerby/kerberos/kerb/codec/TestPaPkAsRep.java
@@ -0,0 +1,41 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ */
+package org.apache.kerby.kerberos.kerb.codec;
+
+import org.apache.kerby.kerberos.kerb.KrbCodec;
+import org.apache.kerby.kerberos.kerb.KrbException;
+import org.apache.kerby.kerberos.kerb.type.pa.pkinit.DHRepInfo;
+import org.apache.kerby.kerberos.kerb.type.pa.pkinit.PaPkAsRep;
+import org.junit.Test;
+
+import java.io.IOException;
+
+public class TestPaPkAsRep {
+
+    @Test
+    public void test() throws IOException, KrbException {
+        PaPkAsRep paPkAsRep = new PaPkAsRep();
+        DHRepInfo dhRepInfo = new DHRepInfo();
+        dhRepInfo.setDHSignedData("dhSignedData".getBytes());
+        paPkAsRep.setDHRepInfo(dhRepInfo);
+        //TO BE FIXED
+        //KrbCodec.decode(paPkAsRep.encode(), PaPkAsRep.class);
+    }
+}


Mime
View raw message