|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.security.ECPublicKey
public final class ECPublicKey
Field Summary | |
---|---|
protected int |
bitsize
Key size in bits, e.g. |
protected int |
bytesize
|
protected ECCurveFp |
curve
Flag indicating if the key has been initialized. |
protected FFA |
ffa
|
boolean |
initOk
|
protected ECPoint |
keyData
|
Constructor Summary | |
---|---|
ECPublicKey()
|
Method Summary | |
---|---|
void |
clearKey()
|
ECCurveFp |
getCurve()
|
ECPoint |
getKeyData()
|
int |
getSize()
|
int |
getW(byte[] buffer,
int offset)
Returns the point of the curve comprising the public key in plain text form. |
void |
setW(byte[] buffer,
int offset,
int length)
Sets the point of the curve comprising the public key. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ECPoint keyData
protected int bitsize
protected int bytesize
protected ECCurveFp curve
protected FFA ffa
public boolean initOk
Constructor Detail |
---|
public ECPublicKey()
Method Detail |
---|
public void setW(byte[] buffer, int offset, int length) throws CryptoException
buffer
- the input bufferoffset
- the offset into the input buffer at which the point
specification beginslength
- the byte length of the point specificiation
javacard.security.CryptoException
- with the following reason code:
CryptoException.ILLEGAL_VALUE
if the input
parameter data format is incorrect, or if the input parameter
data is inconsistent with the elliptic curve.CryptoException
public int getW(byte[] buffer, int offset) throws CryptoException
buffer
- the output bufferoffset
- the offset into the output buffer at which the point
specification data is to begin
javacard.security.CryptoException
- with the following reason code:
CryptoException.UNINITIALIZED_KEY
if the point
of the curve comprising the public key has not been
successfully initialized since the time the initialized state
of the key was set to false.CryptoException
javacard.security.Key
public int getSize()
public ECPoint getKeyData()
public void clearKey()
public ECCurveFp getCurve()
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |