Package org.xipki.pkcs11.wrapper
Class AttributeVector
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.AttributeVector
-
public class AttributeVector extends Object
Object of this class represents the attribute vector.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description AttributeVector()AttributeVector(Attribute... attributes)
-
Method Summary
-
-
-
Constructor Detail
-
AttributeVector
public AttributeVector()
-
AttributeVector
public AttributeVector(Attribute... attributes)
-
-
Method Detail
-
newSecretKey
public static AttributeVector newSecretKey()
-
newSecretKey
public static AttributeVector newSecretKey(long keyType)
-
newAESSecretKey
public static AttributeVector newAESSecretKey()
-
newPrivateKey
public static AttributeVector newPrivateKey()
-
newPrivateKey
public static AttributeVector newPrivateKey(long keyType)
-
newRSAPrivateKey
public static AttributeVector newRSAPrivateKey()
-
newECPrivateKey
public static AttributeVector newECPrivateKey()
-
newDSAPrivateKey
public static AttributeVector newDSAPrivateKey()
-
newPublicKey
public static AttributeVector newPublicKey()
-
newPublicKey
public static AttributeVector newPublicKey(long keyType)
-
newRSAPublicKey
public static AttributeVector newRSAPublicKey()
-
newECPublicKey
public static AttributeVector newECPublicKey()
-
newDSAPublicKey
public static AttributeVector newDSAPublicKey()
-
newCertificate
public static AttributeVector newCertificate(long certificateType)
-
newX509Certificate
public static AttributeVector newX509Certificate()
-
attr
public AttributeVector attr(long attrType, Object attrValue)
-
attr
public AttributeVector attr(Attribute attr)
-
toCkAttributes
public CK_ATTRIBUTE[] toCkAttributes()
-
getAttribute
public Attribute getAttribute(long type)
-
getBooleanAttrValue
public Boolean getBooleanAttrValue(long type)
-
getLongAttrValue
public Long getLongAttrValue(long type)
-
getIntAttrValue
public Integer getIntAttrValue(long type)
-
getStringAttrValue
public String getStringAttrValue(long type)
-
getByteArrayAttrValue
public byte[] getByteArrayAttrValue(long type)
-
acIssuer
public byte[] acIssuer()
-
acIssuer
public AttributeVector acIssuer(byte[] acIssuer)
-
allowedMechanisms
public long[] allowedMechanisms()
-
allowedMechanisms
public AttributeVector allowedMechanisms(long[] allowedMechanisms)
-
alwaysAuthenticate
public Boolean alwaysAuthenticate()
-
alwaysAuthenticate
public AttributeVector alwaysAuthenticate(Boolean alwaysAuthenticate)
-
alwaysSensitive
public Boolean alwaysSensitive()
-
alwaysSensitive
public AttributeVector alwaysSensitive(Boolean alwaysSensitive)
-
application
public String application()
-
application
public AttributeVector application(String application)
-
attrTypes
public byte[] attrTypes()
-
attrTypes
public AttributeVector attrTypes(byte[] attrTypes)
-
base
public BigInteger base()
-
base
public AttributeVector base(BigInteger base)
-
bitsPerPixel
public Integer bitsPerPixel()
-
bitsPerPixel
public AttributeVector bitsPerPixel(Integer bitsPerPixel)
-
certificateCategory
public Long certificateCategory()
-
certificateCategory
public AttributeVector certificateCategory(Long certificateCategory)
-
certificateType
public Long certificateType()
-
certificateType
public AttributeVector certificateType(Long certificateType)
-
charColumns
public Integer charColumns()
-
charColumns
public AttributeVector charColumns(Integer charColumns)
-
charRows
public Integer charRows()
-
charRows
public AttributeVector charRows(Integer charRows)
-
charSets
public String charSets()
-
charSets
public AttributeVector charSets(String charSets)
-
checkValue
public byte[] checkValue()
-
checkValue
public AttributeVector checkValue(byte[] checkValue)
-
class_
public Long class_()
-
class_
public AttributeVector class_(Long class_)
-
coefficient
public BigInteger coefficient()
-
coefficient
public AttributeVector coefficient(BigInteger coefficient)
-
color
public Boolean color()
-
color
public AttributeVector color(Boolean color)
-
copyable
public Boolean copyable()
-
copyable
public AttributeVector copyable(Boolean copyable)
-
decrypt
public Boolean decrypt()
-
decrypt
public AttributeVector decrypt(Boolean decrypt)
-
defaultCmsAttributes
public byte[] defaultCmsAttributes()
-
defaultCmsAttributes
public AttributeVector defaultCmsAttributes(byte[] defaultCmsAttributes)
-
derive
public Boolean derive()
-
derive
public AttributeVector derive(Boolean derive)
-
deriveTemplate
public AttributeVector deriveTemplate()
-
deriveTemplate
public AttributeVector deriveTemplate(AttributeVector deriveTemplate)
-
destroyable
public Boolean destroyable()
-
destroyable
public AttributeVector destroyable(Boolean destroyable)
-
ecParams
public byte[] ecParams()
-
ecParams
public AttributeVector ecParams(byte[] ecParams)
-
ecPoint
public byte[] ecPoint()
-
ecPoint
public AttributeVector ecPoint(byte[] ecPoint)
-
encodingMethods
public String encodingMethods()
-
encodingMethods
public AttributeVector encodingMethods(String encodingMethods)
-
encrypt
public Boolean encrypt()
-
encrypt
public AttributeVector encrypt(Boolean encrypt)
-
endDate
public Date endDate()
-
endDate
public AttributeVector endDate(Date endDate)
-
exponent1
public BigInteger exponent1()
-
exponent1
public AttributeVector exponent1(BigInteger exponent1)
-
exponent2
public BigInteger exponent2()
-
exponent2
public AttributeVector exponent2(BigInteger exponent2)
-
extractable
public Boolean extractable()
-
extractable
public AttributeVector extractable(Boolean extractable)
-
gost28147Params
public byte[] gost28147Params()
-
gost28147Params
public AttributeVector gost28147Params(byte[] gost28147Params)
-
gostr3410Params
public byte[] gostr3410Params()
-
gostr3410Params
public AttributeVector gostr3410Params(byte[] gostr3410Params)
-
gostr3411Params
public byte[] gostr3411Params()
-
gostr3411Params
public AttributeVector gostr3411Params(byte[] gostr3411Params)
-
hashOfIssuerPublicKey
public byte[] hashOfIssuerPublicKey()
-
hashOfIssuerPublicKey
public AttributeVector hashOfIssuerPublicKey(byte[] hashOfIssuerPublicKey)
-
hashOfSubjectPublicKey
public byte[] hashOfSubjectPublicKey()
-
hashOfSubjectPublicKey
public AttributeVector hashOfSubjectPublicKey(byte[] hashOfSubjectPublicKey)
-
hasReset
public Boolean hasReset()
-
hasReset
public AttributeVector hasReset(Boolean hasReset)
-
hwFeatureType
public Long hwFeatureType()
-
hwFeatureType
public AttributeVector hwFeatureType(Long hwFeatureType)
-
id
public byte[] id()
-
id
public AttributeVector id(byte[] id)
-
issuer
public byte[] issuer()
-
issuer
public AttributeVector issuer(byte[] issuer)
-
javaMidpSecurityDomain
public Long javaMidpSecurityDomain()
-
javaMidpSecurityDomain
public AttributeVector javaMidpSecurityDomain(Long javaMidpSecurityDomain)
-
keyGenMechanism
public Long keyGenMechanism()
-
keyGenMechanism
public AttributeVector keyGenMechanism(Long keyGenMechanism)
-
keyType
public Long keyType()
-
keyType
public AttributeVector keyType(Long keyType)
-
label
public String label()
-
label
public AttributeVector label(String label)
-
local
public Boolean local()
-
local
public AttributeVector local(Boolean local)
-
mechanismType
public Long mechanismType()
-
mechanismType
public AttributeVector mechanismType(Long mechanismType)
-
mimeTypes
public String mimeTypes()
-
mimeTypes
public AttributeVector mimeTypes(String mimeTypes)
-
modifiable
public Boolean modifiable()
-
modifiable
public AttributeVector modifiable(Boolean modifiable)
-
modulus
public BigInteger modulus()
-
modulus
public AttributeVector modulus(BigInteger modulus)
-
modulusBits
public Integer modulusBits()
-
modulusBits
public AttributeVector modulusBits(Integer modulusBits)
-
nameHashAlgorithm
public Long nameHashAlgorithm()
-
nameHashAlgorithm
public AttributeVector nameHashAlgorithm(Long nameHashAlgorithm)
-
neverExtractable
public Boolean neverExtractable()
-
neverExtractable
public AttributeVector neverExtractable(Boolean neverExtractable)
-
objectId
public byte[] objectId()
-
objectId
public AttributeVector objectId(byte[] objectId)
-
otpChallengeRequirement
public Long otpChallengeRequirement()
-
otpChallengeRequirement
public AttributeVector otpChallengeRequirement(Long otpChallengeRequirement)
-
otpCounter
public byte[] otpCounter()
-
otpCounter
public AttributeVector otpCounter(byte[] otpCounter)
-
otpCounterRequirement
public Long otpCounterRequirement()
-
otpCounterRequirement
public AttributeVector otpCounterRequirement(Long otpCounterRequirement)
-
otpFormat
public Long otpFormat()
-
otpFormat
public AttributeVector otpFormat(Long otpFormat)
-
otpLength
public Integer otpLength()
-
otpLength
public AttributeVector otpLength(Integer otpLength)
-
otpPinRequirement
public Long otpPinRequirement()
-
otpPinRequirement
public AttributeVector otpPinRequirement(Long otpPinRequirement)
-
otpServiceIdentifier
public String otpServiceIdentifier()
-
otpServiceIdentifier
public AttributeVector otpServiceIdentifier(String otpServiceIdentifier)
-
otpServiceLogo
public byte[] otpServiceLogo()
-
otpServiceLogo
public AttributeVector otpServiceLogo(byte[] otpServiceLogo)
-
otpServiceLogoType
public String otpServiceLogoType()
-
otpServiceLogoType
public AttributeVector otpServiceLogoType(String otpServiceLogoType)
-
otpTime
public String otpTime()
-
otpTime
public AttributeVector otpTime(String otpTime)
-
otpTimeInterval
public Long otpTimeInterval()
-
otpTimeInterval
public AttributeVector otpTimeInterval(Long otpTimeInterval)
-
otpTimeRequirement
public Long otpTimeRequirement()
-
otpTimeRequirement
public AttributeVector otpTimeRequirement(Long otpTimeRequirement)
-
otpUserFriendlyMode
public Boolean otpUserFriendlyMode()
-
otpUserFriendlyMode
public AttributeVector otpUserFriendlyMode(Boolean otpUserFriendlyMode)
-
otpUserIdentifier
public String otpUserIdentifier()
-
otpUserIdentifier
public AttributeVector otpUserIdentifier(String otpUserIdentifier)
-
owner
public byte[] owner()
-
owner
public AttributeVector owner(byte[] owner)
-
pixelX
public Integer pixelX()
-
pixelX
public AttributeVector pixelX(Integer pixelX)
-
pixelY
public Integer pixelY()
-
pixelY
public AttributeVector pixelY(Integer pixelY)
-
prime
public BigInteger prime()
-
prime
public AttributeVector prime(BigInteger prime)
-
prime1
public BigInteger prime1()
-
prime1
public AttributeVector prime1(BigInteger prime1)
-
prime2
public BigInteger prime2()
-
prime2
public AttributeVector prime2(BigInteger prime2)
-
primeBits
public Integer primeBits()
-
primeBits
public AttributeVector primeBits(Integer primeBits)
-
private_
public Boolean private_()
-
private_
public AttributeVector private_(Boolean private_)
-
privateExponent
public BigInteger privateExponent()
-
privateExponent
public AttributeVector privateExponent(BigInteger privateExponent)
-
profileId
public Long profileId()
-
profileId
public AttributeVector profileId(Long profileId)
-
publicExponent
public BigInteger publicExponent()
-
publicExponent
public AttributeVector publicExponent(BigInteger publicExponent)
-
publicKeyInfo
public byte[] publicKeyInfo()
-
publicKeyInfo
public AttributeVector publicKeyInfo(byte[] publicKeyInfo)
-
requiredCmsAttributes
public byte[] requiredCmsAttributes()
-
requiredCmsAttributes
public AttributeVector requiredCmsAttributes(byte[] requiredCmsAttributes)
-
resetOnInit
public Boolean resetOnInit()
-
resetOnInit
public AttributeVector resetOnInit(Boolean resetOnInit)
-
resolution
public Integer resolution()
-
resolution
public AttributeVector resolution(Integer resolution)
-
sensitive
public Boolean sensitive()
-
sensitive
public AttributeVector sensitive(Boolean sensitive)
-
serialNumber
public byte[] serialNumber()
-
serialNumber
public AttributeVector serialNumber(byte[] serialNumber)
-
sign
public Boolean sign()
-
sign
public AttributeVector sign(Boolean sign)
-
signRecover
public Boolean signRecover()
-
signRecover
public AttributeVector signRecover(Boolean signRecover)
-
startDate
public Date startDate()
-
startDate
public AttributeVector startDate(Date startDate)
-
subject
public byte[] subject()
-
subject
public AttributeVector subject(byte[] subject)
-
subprime
public BigInteger subprime()
-
subprime
public AttributeVector subprime(BigInteger subprime)
-
subprimeBits
public Integer subprimeBits()
-
subprimeBits
public AttributeVector subprimeBits(Integer subprimeBits)
-
supportedCmsAttributes
public byte[] supportedCmsAttributes()
-
supportedCmsAttributes
public AttributeVector supportedCmsAttributes(byte[] supportedCmsAttributes)
-
token
public Boolean token()
-
token
public AttributeVector token(Boolean token)
-
trusted
public Boolean trusted()
-
trusted
public AttributeVector trusted(Boolean trusted)
-
uniqueId
public String uniqueId()
-
uniqueId
public AttributeVector uniqueId(String uniqueId)
-
unwrap
public Boolean unwrap()
-
unwrap
public AttributeVector unwrap(Boolean unwrap)
-
unwrapTemplate
public AttributeVector unwrapTemplate()
-
unwrapTemplate
public AttributeVector unwrapTemplate(AttributeVector unwrapTemplate)
-
url
public String url()
-
url
public AttributeVector url(String url)
-
value
public byte[] value()
-
value
public AttributeVector value(byte[] value)
-
valueBits
public Integer valueBits()
-
valueBits
public AttributeVector valueBits(Integer valueBits)
-
valueLen
public Integer valueLen()
-
valueLen
public AttributeVector valueLen(Integer valueLen)
-
verify
public Boolean verify()
-
verify
public AttributeVector verify(Boolean verify)
-
verifyRecover
public Boolean verifyRecover()
-
verifyRecover
public AttributeVector verifyRecover(Boolean verifyRecover)
-
wrap
public Boolean wrap()
-
wrap
public AttributeVector wrap(Boolean wrap)
-
wrapTemplate
public AttributeVector wrapTemplate()
-
wrapTemplate
public AttributeVector wrapTemplate(AttributeVector wrapTemplate)
-
wrapWithTrusted
public Boolean wrapWithTrusted()
-
wrapWithTrusted
public AttributeVector wrapWithTrusted(Boolean wrapWithTrusted)
-
-