|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.datenzone.tpm4java.TPMPubKeyWrapper
public class TPMPubKeyWrapper
Wrapper around a public key from a tpm.
| Constructor Summary | |
|---|---|
TPMPubKeyWrapper()
|
|
TPMPubKeyWrapper(byte[] raw,
boolean pcr_present)
Parse a public key from a TPM structure |
|
TPMPubKeyWrapper(java.nio.ByteBuffer bb,
boolean pcr_present)
Parse a public key from a TPM structure |
|
TPMPubKeyWrapper(java.security.PublicKey pk)
Wrap an existing RSA-PublicKey into a TPMPubKey Structure. |
|
| Method Summary | |
|---|---|
byte[] |
buildBuffer(boolean pcr_present)
Create a native TPM structure using the information given in this field |
int |
getAlgorithm()
|
byte[] |
getBlobForHashing(boolean pcrPresent)
Return a blob that can be used for hashing. |
short |
getEncscheme()
|
int |
getExponent()
|
int |
getExpsize()
|
int |
getKeybitlen()
|
int |
getKeylength()
|
TPMKeyParms |
getKeyParms()
|
byte[] |
getModulus()
|
int |
getNumprimes()
|
int |
getParmsize()
|
byte[] |
getPcrinfo()
|
int |
getPcrinfolen()
|
byte[] |
getRaw_exp()
|
byte[] |
getRaw_parms()
|
byte[] |
getRaw()
|
java.security.PublicKey |
getRSAPubKey()
Convert to a PublicKey, or return the PublicKey with which this object was created. |
short |
getSigscheme()
|
void |
setAlgorithm(int algorithm)
|
void |
setEncscheme(short encscheme)
|
void |
setExponent(int exponent)
|
void |
setExpsize(int expsize)
|
void |
setKeybitlen(int keybitlen)
|
void |
setKeylength(int keylength)
|
void |
setKeyParms(TPMKeyParms keyParms)
|
void |
setModulus(byte[] modulus)
|
void |
setNumprimes(int numprimes)
|
void |
setPcrinfo(byte[] pcrinfo)
|
void |
setPcrinfolen(int pcrinfolen)
|
void |
setSigscheme(short sigscheme)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TPMPubKeyWrapper(java.nio.ByteBuffer bb,
boolean pcr_present)
bb - pcr_present - whether a PCRInfo field is present in the key
public TPMPubKeyWrapper(byte[] raw,
boolean pcr_present)
raw - pcr_present - whether a PCRInfo field is present in the keypublic TPMPubKeyWrapper()
public TPMPubKeyWrapper(java.security.PublicKey pk)
pk - | Method Detail |
|---|
public byte[] buildBuffer(boolean pcr_present)
pcr_present - whether a PCRInfo field should be present in the assembled
structure
public java.lang.String toString()
toString in class java.lang.Object
public java.security.PublicKey getRSAPubKey()
throws java.security.spec.InvalidKeySpecException,
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmExceptionpublic byte[] getBlobForHashing(boolean pcrPresent)
pcrPresent - whether the PCRInfo field should be included
public int getKeylength()
public void setKeylength(int keylength)
public TPMKeyParms getKeyParms()
public void setKeyParms(TPMKeyParms keyParms)
public byte[] getModulus()
public void setModulus(byte[] modulus)
public byte[] getRaw()
public int getAlgorithm()
public short getEncscheme()
public int getExponent()
public int getExpsize()
public int getKeybitlen()
public int getNumprimes()
public int getParmsize()
public byte[] getPcrinfo()
public int getPcrinfolen()
public byte[] getRaw_exp()
public byte[] getRaw_parms()
public short getSigscheme()
public void setAlgorithm(int algorithm)
public void setEncscheme(short encscheme)
public void setExponent(int exponent)
public void setExpsize(int expsize)
public void setKeybitlen(int keybitlen)
public void setNumprimes(int numprimes)
public void setPcrinfo(byte[] pcrinfo)
public void setPcrinfolen(int pcrinfolen)
public void setSigscheme(short sigscheme)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||