|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tc.tss.impl.java.tsp.TcAttributes iaik.tc.tss.impl.java.tsp.TcWorkingObject iaik.tc.tss.impl.java.tsp.TcPolicy
public class TcPolicy
Method Summary | |
---|---|
void |
assignToObject(TcIAuthObject obj)
This method assigns an object (working object) like TPM object, key object, encrypted data object to a certain policy. |
void |
flushSecret()
This method flushes a cached secret. |
TcBlobData |
getAttribCallback(long subFlag)
Not yet supported. |
long |
getAttribCallbackUINT32(long subFlag)
The sole purpose of this method is to notify callers that TSS 1.1 style callback functions are not supported. |
TcBlobData |
getAttribDelegationInfo(long subFlag)
Not yet supported. |
long |
getAttribDelegationInfoUINT32(long subFlag)
Not yet supported. |
TcBlobData |
getAttribDelegationPcr(long subFlag)
Not yet supported. |
long |
getAttribDelegationPcrUINT32(long subFlag)
Not yet supported. |
TcBlobData |
getAttribPopupString(long subFlag)
This method is a shortcut for calling TcIAttributes.getAttribData(long, long) with
TcTssConstants.TSS_TSPATTRIB_POLICY_POPUPSTRING as flag. |
long |
getAttribSecretHashMode(long subFlag)
This method is a shortcut for calling TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE as flag. |
long |
getAttribSecretLifetime(long subFlag)
This method is a shortcut for calling TcIAttributes.getAttribUint32(long, long) with
TcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIME as flag. |
long |
getPolicyType()
This methode is needed for returning the current policytype. |
boolean |
isSecretSet()
Returns the state of the secret, without trying to get it from the user or by callback. |
void |
setAttribCallback(long subFlag,
TcBlobData attrib)
Not yet supported. |
void |
setAttribCallbackUINT32(long subFlag,
long attrib)
The sole purpose of this method is to notify callers that TSS 1.1 style callback functions are not supported. |
void |
setAttribDelegationInfo(long subFlag,
TcBlobData attrib)
Not yet supported. |
void |
setAttribDelegationInfoUINT32(long subFlag,
long attrib)
Not yet supported. |
void |
setAttribDelegationPcr(long subFlag,
TcBlobData attrib)
Not yet supported. |
void |
setAttribDelegationPcrUINT32(long subFlag,
long attrib)
Not yet supported. |
void |
setAttribPopupString(long subFlag,
TcBlobData attrib)
This method is a shortcut for calling TcIAttributes.setAttribData(long, long, TcBlobData) with
TcTssConstants.TSS_TSPATTRIB_POLICY_POPUPSTRING as flag. |
void |
setAttribSecretHashMode(long subFlag,
long attrib)
This method is a shortcut for calling TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE as flag. |
void |
setAttribSecretLifetime(long subFlag,
long attrib)
This method is a shortcut for calling TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIME as flag. |
void |
setSecret(long secretMode,
TcBlobData secret)
This method sets the authorization data of a policy object and defines the handling of its retrieval. |
Methods inherited from class iaik.tc.tss.impl.java.tsp.TcAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface iaik.tc.tss.api.tspi.TcIAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Method Detail |
---|
public void assignToObject(TcIAuthObject obj) throws TcTssException
TcIPolicy
TcIAttributes.setAttribData(long, long, TcBlobData)
.
assignToObject
in interface TcIPolicy
obj
- The object to be assigned.
TcTssException
public void flushSecret() throws TcTssException
TcIPolicy
flushSecret
in interface TcIPolicy
TcTssException
public void setSecret(long secretMode, TcBlobData secret) throws TcTssException
TcIPolicy
setSecret
in interface TcIPolicy
secretMode
- Flag indicating the policy secret mode to set. Secret mode values are
prefixed with TSS_SECRET_MODE_ and are defined in TcTssConstants
. TcTssConstants.TSS_SECRET_MODE_NONE
TcTssConstants.TSS_SECRET_MODE_PLAIN
TcTssConstants.TSS_SECRET_MODE_POPUP
TcTssConstants.TSS_SECRET_MODE_SHA1
TcTssConstants.TSS_SECRET_MODE_CALLBACK
).
To actually use the callback functionality to obtain the secret, the setAttribData
method has to be used to set the callback. If this is done, the setSecret method must
not be called.secret
- The secret data blob.
TcTssException
public void setAttribCallbackUINT32(long subFlag, long attrib) throws TcTssException
TcTssException
public long getAttribCallbackUINT32(long subFlag) throws TcTssException
TcTssException
public void setAttribCallback(long subFlag, TcBlobData attrib) throws TcTssException
TcTssException
public TcBlobData getAttribCallback(long subFlag) throws TcTssException
TcTssException
public void setAttribDelegationPcrUINT32(long subFlag, long attrib) throws TcTssException
TcTssException
public long getAttribDelegationPcrUINT32(long subFlag) throws TcTssException
TcTssException
public void setAttribDelegationPcr(long subFlag, TcBlobData attrib) throws TcTssException
TcTssException
public TcBlobData getAttribDelegationPcr(long subFlag) throws TcTssException
TcTssException
public void setAttribDelegationInfoUINT32(long subFlag, long attrib) throws TcTssException
TcTssException
public long getAttribDelegationInfoUINT32(long subFlag) throws TcTssException
TcTssException
public void setAttribDelegationInfo(long subFlag, TcBlobData attrib) throws TcTssException
TcTssException
public TcBlobData getAttribDelegationInfo(long subFlag) throws TcTssException
TcTssException
public void setAttribSecretLifetime(long subFlag, long attrib) throws TcTssException
TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIME
as flag.
subFlag
- Valid subFlags are:
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_ALWAYS
,
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_COUNTER
and
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_TIMER
.attrib
- The lifetime value to set.
{@link
- TcTssException}
TcTssException
public long getAttribSecretLifetime(long subFlag) throws TcTssException
TcIAttributes.getAttribUint32(long, long)
with
TcTssConstants.TSS_TSPATTRIB_POLICY_SECRET_LIFETIME
as flag.
subFlag
- Valid subFlags are:
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_ALWAYS
,
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_COUNTER
and
TcTssConstants.TSS_TSPATTRIB_POLICYSECRET_LIFETIME_TIMER
.
{@link
- TcTssException}
TcTssException
public void setAttribSecretHashMode(long subFlag, long attrib) throws TcTssException
TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE
as flag.
subFlag
- Valid subFlags are: TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE_POPUP
attrib
- The hash mode to set.
{@link
- TcTssException}
TcTssException
public long getAttribSecretHashMode(long subFlag) throws TcTssException
TcIAttributes.setAttribUint32(long, long, long)
with TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE
as flag.
subFlag
- Valid subFlags are: TcTssConstants.TSS_TSPATTRIB_SECRET_HASH_MODE_POPUP
.
{@link
- TcTssException}
TcTssException
public void setAttribPopupString(long subFlag, TcBlobData attrib) throws TcTssException
TcIAttributes.setAttribData(long, long, TcBlobData)
with
TcTssConstants.TSS_TSPATTRIB_POLICY_POPUPSTRING
as flag.
subFlag
- Ignored.attrib
- Popup string.
{@link
- TcTssException}
TcTssException
public TcBlobData getAttribPopupString(long subFlag) throws TcTssException
TcIAttributes.getAttribData(long, long)
with
TcTssConstants.TSS_TSPATTRIB_POLICY_POPUPSTRING
as flag.
subFlag
- Ignored.
{@link
- TcTssException}
TcTssException
public boolean isSecretSet()
public long getPolicyType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |