org.apache.rahas.impl.util.SAMLUtils Maven / Gradle / Ivy
package org.apache.rahas.impl.util;
import org.apache.rahas.impl.SAMLTokenIssuerConfig;
import org.apache.ws.security.components.crypto.Crypto;
import org.apache.ws.security.WSSecurityException;
import java.security.cert.X509Certificate;
import java.util.Collection;
import java.util.ArrayList;
public class SAMLUtils {
public static Collection getCertChainCollection(X509Certificate[] issuerCerts){
ArrayList certCollection = new ArrayList();
if (issuerCerts == null) {
return certCollection;
} else {
for (X509Certificate cert : issuerCerts) {
certCollection.add(cert);
}
}
return certCollection;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy