Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update CM to us Local Intermediate Certs
[aaf/authz.git]
/
auth
/
auth-certman
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
auth
/
cm
/
ca
/
X509andChain.java
diff --git
a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/X509andChain.java
b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/X509andChain.java
index
46a6393
..
5141cc6
100644
(file)
--- a/
auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/X509andChain.java
+++ b/
auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/X509andChain.java
@@
-25,8
+25,8
@@
import java.security.cert.X509Certificate;
import java.util.List;
import org.onap.aaf.auth.env.NullTrans;
import java.util.List;
import org.onap.aaf.auth.env.NullTrans;
-import org.onap.aaf.cadi.c
m
.CertException;
-import org.onap.aaf.cadi.c
m
.Factory;
+import org.onap.aaf.cadi.c
onfigure
.CertException;
+import org.onap.aaf.cadi.c
onfigure
.Factory;
/**
/**
@@
-45,14
+45,14
@@
public class X509andChain {
trustChain = null;
}
trustChain = null;
}
- public X509andChain(X509Certificate cert, String[] t
rustChain)
{
+ public X509andChain(X509Certificate cert, String[] t
c) throws IOException, CertException
{
this.cert = cert;
this.cert = cert;
- t
his.trustChain = trustChain
;
+ t
rustChain=tc
;
}
}
- public X509andChain(X509Certificate cert, List<String> chain) {
+ public X509andChain(X509Certificate cert, List<String> chain)
throws IOException, CertException
{
this.cert = cert;
this.cert = cert;
- trustChain = new String[chain.size()];
+ trustChain = new String[chain.size()
+1
];
chain.toArray(trustChain);
}
chain.toArray(trustChain);
}
@@
-67,6
+67,7
@@
public class X509andChain {
trustChain=temp;
}
}
trustChain=temp;
}
}
+
public X509Certificate getX509() {
return cert;
public X509Certificate getX509() {
return cert;