|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TcIAttributes
This interface defines methods that are in common for all objects that support setting or getting UINT32 and data attributes.
| Method Summary | |
|---|---|
TcBlobData |
getAttribData(long attribFlag,
long subFlag)
This method gets a non UINT32 attribute of the object (i.e. |
long |
getAttribUint32(long attribFlag,
long subFlag)
This method gets an UINT32 attribute of the object. |
void |
setAttribData(long attribFlag,
long subFlag,
TcBlobData attrib)
This method sets a non UINT32 attribute (i.e. |
void |
setAttribUint32(long attribFlag,
long subFlag,
long attrib)
This method sets an UINT32 attribute of the object. |
| Method Detail |
|---|
TcBlobData getAttribData(long attribFlag,
long subFlag)
throws TcTssException
attribFlag - Flag indicating the attribute to get. Attribute Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTssConstants. Valid attributes depend on
the actual type of the object this method is called for. TcTssConstants.TSS_TSPATTRIB_KEY_BLOBTcTssConstants.TSS_TSPATTRIB_KEY_INFOTcTssConstants.TSS_TSPATTRIB_RSAKEY_INFOTcTssConstants.TSS_TSPATTRIB_KEY_UUID. To get this attribute as an
TcTssUuid instead of a blob use
TcIRsaKey.getAttribUuid()TcTssConstants.TSS_TSPATTRIB_KEY_PCRsubFlag - Sub flag indicating the attribute to get. TcTssConstants.TSS_TSPATTRIB_ENCDATABLOB_BLOBTcTssConstants.TSS_TSPATTRIB_ENCDATAPCR_DIGEST_ATCREATIONTcTssConstants.TSS_TSPATTRIB_ENCDATAPCR_DIGEST_RELEASETcTssConstants.TSS_TSPATTRIB_ENCDATAPCR_SELECTIONTcTssConstants.TSS_TSPATTRIB_KEYBLOB_BLOBTcTssConstants.TSS_TSPATTRIB_KEYBLOB_PRIVATE_KEYTcTssConstants.TSS_TSPATTRIB_KEYBLOB_PUBLIC_KEYTcTssConstants.TSS_TSPATTRIB_KEYINFO_VERSION. To get this attribute as
an TcTssVersion instead of a blob use
TcIRsaKey.getAttribKeyInfoVersion()TcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_EXPONENTTcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_MODULUSTcTssConstants.TSS_TSPATTRIB_KEYPCR_DIGEST_ATCREATIONTcTssConstants.TSS_TSPATTRIB_KEYPCR_DIGEST_ATRELEASETcTssConstants.TSS_TSPATTRIB_KEYPCR_SELECTIONTcTssException
void setAttribData(long attribFlag,
long subFlag,
TcBlobData attrib)
throws TcTssException
attribFlag - Flag indicating the attribute to set. Attribute Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTssConstants. Valid attributes depend on
the actual type of the object this method is called for. subFlag - Sub flag indicating the attribute to set. TcTssConstants.TSS_TSPATTRIB_KEYBLOB_BLOBTcTssConstants.TSS_TSPATTRIB_KEYBLOB_PRIVATE_KEYTcTssConstants.TSS_TSPATTRIB_KEYBLOB_PUBLIC_KEYattrib - the actual data which is to be set for the specified attribute
TcTssException
long getAttribUint32(long attribFlag,
long subFlag)
throws TcTssException
attribFlag - Flag indicating the attribute to query. Attribute Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTssConstants. Valid attributes depend on
the actual type of the object this method is called for. TcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_HMACTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_XOR_ENCTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_TAKEOWNERSHIPTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_CHANGEAUTHASYMTcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIMETcTssConstants.TSS_TSPATTRIB_KEY_REGISTERTcTssConstants.TSS_TSPATTRIB_KEY_INFOTcTssConstants.TSS_TSPATTRIB_RSAKEY_INFOsubFlag - Sub flag indicating the attribute to query. Sub-Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTssConstants. TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_ALWAYSTcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_COUNTERTcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_TIMERTcTssConstants.TSS_TSPATTRIB_KEYINFO_USAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_MIGRATABLETcTssConstants.TSS_TSPATTRIB_KEYINFO_REDIRECTEDTcTssConstants.TSS_TSPATTRIB_KEYINFO_VOLATILETcTssConstants.TSS_TSPATTRIB_KEYINFO_AUTHDATAUSAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_ALGORITHMTcTssConstants.TSS_TSPATTRIB_KEYINFO_ENCSCHEMETcTssConstants.TSS_TSPATTRIB_KEYINFO_SIGSCHEMETcTssConstants.TSS_TSPATTRIB_KEYINFO_KEYFLAGSTcTssConstants.TSS_TSPATTRIB_KEYINFO_AUTHUSAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_KEYSIZETcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_PRIMESTcTssException
void setAttribUint32(long attribFlag,
long subFlag,
long attrib)
throws TcTssException
attribFlag - Flag indicating the attribute to set. Attribute Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTpmConstants.
Valid attributes depend on the actual type of the object this method is called for.
TcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_HMACTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_XOR_ENCTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_TAKEOWNERSHIPTcTssConstants.TSS_TSPATTRIB_POLICY_CALLBACK_CHANGEAUTHASYMTcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIMETcTssConstants.TSS_TSPATTRIB_KEY_BLOBTcTssConstants.TSS_TSPATTRIB_KEY_INFOTcTssConstants.TSS_TSPATTRIB_RSAKEY_INFOsubFlag - Sub flag indicating the attribute to set. Sub-Flags are prefixed with
TSS_TSPATTRIB_ and are defined in TcTssConstants. TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_ALWAYSTcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_COUNTERTcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_TIMERTcTssConstants.TSS_TSPATTRIB_KEYINFO_USAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_MIGRATABLETcTssConstants.TSS_TSPATTRIB_KEYINFO_REDIRECTEDTcTssConstants.TSS_TSPATTRIB_KEYINFO_VOLATILETcTssConstants.TSS_TSPATTRIB_KEYINFO_AUTHDATAUSAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_ALGORITHMTcTssConstants.TSS_TSPATTRIB_KEYINFO_ENCSCHEMETcTssConstants.TSS_TSPATTRIB_KEYINFO_SIGSCHEMETcTssConstants.TSS_TSPATTRIB_KEYINFO_SIZETcTssConstants.TSS_TSPATTRIB_KEYINFO_KEYFLAGSTcTssConstants.TSS_TSPATTRIB_KEYINFO_AUTHUSAGETcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_PRIMESattrib - Value which is to be set for the specified attribute. Only non-negative arguments
are allowed. Note: The UINT32 is represented by a Java long data type to avoid
problems when converting from singed Java types to unsigned C types.
TcTssException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||