public class X509KeyInfoGeneratorTest extends XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private String |
altName1 |
private Integer |
altName1Type |
private String |
altName2 |
private Integer |
altName2Type |
private String |
altName3 |
private Integer |
altName3Type |
private X509Certificate |
caCert |
private String |
caCertBase64 |
private X509CRL |
caCRL |
private String |
caCRLBase64 |
private BasicX509Credential |
credential |
private X509Certificate |
entityCert |
private String |
entityCertBase64 |
private String |
entityCertDigestBase64 |
private String |
entityCertSKIBase64 |
private String |
entityID |
private org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactory |
factory |
private org.opensaml.xmlsec.keyinfo.KeyInfoGenerator |
generator |
private X500Principal |
issuerName |
private String |
keyNameBar |
private String |
keyNameFoo |
private PublicKey |
pubKey |
private BigInteger |
serialNumber |
private static String |
subjectAltNameExtensionOID |
private String |
subjectCN |
private byte[] |
subjectKeyIdentifier |
private X500Principal |
subjectName |
private byte[] |
x509Digest |
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory| Constructor and Description |
|---|
X509KeyInfoGeneratorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testEmitCertAndChainCombo()
Test combo options of cert and chain - don't emit duplicate of entity cert.
|
void |
testEmitCRLs()
Test emit CRLs.
|
void |
testEmitEntityCert()
Test emit entity cert.
|
void |
testEmitEntityCertChain()
Test emit entity cert chain in X509Data.
|
void |
testEmitEntityIDAsKeyName()
Test emit entity ID as key name.
|
void |
testEmitKeynames()
Test emit credential key names.
|
void |
testEmitKeyNamesCombo()
Test emitting combinations of key names.
|
void |
testEmitPublicKey()
Test emit public key.
|
void |
testEmitSubjectAltNamesAsKeyNames()
Test emit subject alt names as key names.
|
void |
testEmitSubjectCNAsKeyName()
Test emit subject CN as key name.
|
void |
testEmitSubjectDNAsKeyName()
Test emit subject DN as key name.
|
void |
testEmitX509Digest()
Test emit X509Digest in X509Data.
|
void |
testEmitX509IssuerSerial()
Test emit issuer name and serial number in X509Data.
|
void |
testEmitX509SKI()
Test emit subject key identifier in X509Data.
|
void |
testEmitX509SubjectName()
Test emit subject name in X509Data.
|
void |
testNoOptions()
Test no options - should produce null KeyInfo.
|
void |
testProperOptionsCloning()
Test that the options passed to the generator are really cloned.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementinitOpenSAMLprivate static String subjectAltNameExtensionOID
private BasicX509Credential credential
private org.opensaml.xmlsec.keyinfo.impl.X509KeyInfoGeneratorFactory factory
private org.opensaml.xmlsec.keyinfo.KeyInfoGenerator generator
private String keyNameFoo
private String keyNameBar
private String entityID
private PublicKey pubKey
private X509Certificate entityCert
private String entityCertBase64
private String entityCertSKIBase64
private String entityCertDigestBase64
private X509Certificate caCert
private String caCertBase64
private String subjectCN
private X500Principal subjectName
private X500Principal issuerName
private BigInteger serialNumber
private byte[] subjectKeyIdentifier
private byte[] x509Digest
private String altName1
private String altName2
private String altName3
private Integer altName1Type
private Integer altName2Type
private Integer altName3Type
private X509CRL caCRL
private String caCRLBase64
public void testNoOptions()
throws SecurityException
SecurityExceptionpublic void testEmitPublicKey()
throws SecurityException,
KeyException
SecurityExceptionKeyExceptionpublic void testEmitKeynames()
throws SecurityException
SecurityExceptionpublic void testEmitEntityIDAsKeyName()
throws SecurityException
SecurityExceptionpublic void testEmitEntityCert()
throws SecurityException,
CertificateException
public void testEmitEntityCertChain()
throws SecurityException,
CertificateException
public void testEmitCertAndChainCombo()
throws SecurityException,
CertificateException
public void testEmitCRLs()
throws SecurityException,
CRLException
SecurityExceptionCRLExceptionpublic void testEmitX509SubjectName()
throws SecurityException
SecurityExceptionpublic void testEmitX509IssuerSerial()
throws SecurityException
SecurityExceptionpublic void testEmitX509SKI()
throws SecurityException
SecurityExceptionpublic void testEmitX509Digest()
throws SecurityException
SecurityExceptionpublic void testEmitSubjectDNAsKeyName()
throws SecurityException
SecurityExceptionpublic void testEmitSubjectCNAsKeyName()
throws SecurityException
SecurityExceptionpublic void testEmitSubjectAltNamesAsKeyNames()
throws SecurityException,
CertificateParsingException
public void testEmitKeyNamesCombo()
throws SecurityException
SecurityExceptionpublic void testProperOptionsCloning()
throws SecurityException
SecurityExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.