![JAR search and dependency download from the Maven repository](/logo.png)
es.gob.jmulticard.asn1.der.pkcs15.CommonPrivateKeyAttributes Maven / Gradle / Ivy
package es.gob.jmulticard.asn1.der.pkcs15;
import javax.security.auth.x500.X500Principal;
import es.gob.jmulticard.asn1.OptionalDecoderObjectElement;
import es.gob.jmulticard.asn1.der.Sequence;
import es.gob.jmulticard.asn1.der.x509.RdnSequence;
/** Tipo ASN.1 PKCS#15 CommonPrivateKeyAttributes.
*
* CommonPrivateKeyAttributes ::= SEQUENCE {
* name Name OPTIONAL,
* keyIdentifiers [0] SEQUENCE OF CredentialIdentifier {{KeyIdentifiers}} OPTIONAL,
* generalName [1] GeneralNames OPTIONAL,
* ... -- For future extensions
* }
*
* @author Tomás García-Merás. */
public final class CommonPrivateKeyAttributes extends Sequence {
/** Construye un tipo ASN.1 PKCS#15 CommonPrivateKeyAttributes. */
public CommonPrivateKeyAttributes() {
super(
// Solo contemplamos el "name", que es de tipo "Name",
// implementado casi siempre como "RdnSequence".
new OptionalDecoderObjectElement[] {
new OptionalDecoderObjectElement(
RdnSequence.class,
true // Opcional
)
}
);
}
X500Principal getKeyPrincipal() {
for (int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy