Class PrKdf
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.Record
-
- es.gob.jmulticard.asn1.der.pkcs15.PrKdf
-
- All Implemented Interfaces:
Pkcs15PrKdf
- Direct Known Subclasses:
CeresScPrKdf
public class PrKdf extends Record implements Pkcs15PrKdf
Objeto PKCS#15 PrKDF (Private Key Description File) ASN.1.
-
-
Constructor Summary
Constructors Modifier Constructor Description PrKdf()Construye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1.protectedPrKdf(OptionalDecoderObjectElement... elements)Construye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKeyCount()Obtiene el número de claves del PrKDF.byte[]getKeyId(int index)Obtiene el identificador de la clave indicada.byte[]getKeyIdentifier(int index)Obtiene el identificador de la clave indicada.intgetKeyLength(int index)Obtiene la longitud de la clave indicada.java.lang.StringgetKeyName(int index)Obtiene el nombre de la clave indicadajava.lang.StringgetKeyPath(int index)Obtiene la ruta PKCS#15 hacia la clave indicada.javax.security.auth.x500.X500PrincipalgetKeyPrincipal(int index)Obtiene el X.500 Principal de la clave.bytegetKeyReference(int index)Obtiene la referencia de la clave indicada.java.lang.StringtoString()-
Methods inherited from class es.gob.jmulticard.asn1.der.Record
decodeValue, getDefaultTag, getElementAt, getElementCount
-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
checkTag, getBytes, getRawDerValue, setDerValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface es.gob.jmulticard.asn1.der.pkcs15.Pkcs15PrKdf
setDerValue
-
-
-
-
Constructor Detail
-
PrKdf
public PrKdf()
Construye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1.
-
PrKdf
protected PrKdf(OptionalDecoderObjectElement... elements)
Construye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1.- Parameters:
elements- Tipos de datos ASN.1 de cada elemento del Record.
-
-
Method Detail
-
getKeyCount
public int getKeyCount()
Obtiene el número de claves del PrKDF.- Specified by:
getKeyCountin interfacePkcs15PrKdf- Returns:
- Número de claves del PrKDF
-
getKeyIdentifier
public byte[] getKeyIdentifier(int index)
Obtiene el identificador de la clave indicada.- Parameters:
index- Índice de la clave- Returns:
- Identificador de la clave
-
getKeyName
public java.lang.String getKeyName(int index)
Obtiene el nombre de la clave indicada- Parameters:
index- Índice de la clave- Returns:
- Nombre de la clave
-
getKeyPath
public java.lang.String getKeyPath(int index)
Obtiene la ruta PKCS#15 hacia la clave indicada.- Parameters:
index- Índice de la clave- Returns:
- Ruta PKCS#15 hacia la clave indicada
-
getKeyLength
public int getKeyLength(int index)
Obtiene la longitud de la clave indicada.- Parameters:
index- Índice de la clave- Returns:
- Longitud de la clave indicada
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getKeyReference
public byte getKeyReference(int index)
Obtiene la referencia de la clave indicada.- Specified by:
getKeyReferencein interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- Referencia de la clave indicada.
-
getKeyId
public byte[] getKeyId(int index)
Obtiene el identificador de la clave indicada.- Specified by:
getKeyIdin interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- Identificador de la clave indicada.
-
getKeyPrincipal
public javax.security.auth.x500.X500Principal getKeyPrincipal(int index)
Description copied from interface:Pkcs15PrKdfObtiene el X.500 Principal de la clave.- Specified by:
getKeyPrincipalin interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- X.500 Principal de la clave.
-
-