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/12/14 07:14:46 UTC
directory-kerby git commit: Add the test of decoding the PaPkAsReq.
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 <ji...@intel.com>
Authored: Mon Dec 14 14:21:13 2015 +0800
Committer: plusplusjiajia <ji...@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);
+ }
+}