javacard.security
Interface DSAPublicKey

All Superinterfaces:
DSAKey, Key, PublicKey

public interface DSAPublicKey
extends PublicKey, DSAKey

The DSAPublicKey interface is used to verify signatures on signed data using the DSA algorithm. An implementation of DSAPublicKey interface must also implement the DSAKey interface methods.

When all four components of the key (Y,P,Q,G) are set, the key is initialized and ready for use.

See Also:
DSAPrivateKey

Method Summary
 short getY(byte[] buffer, short offset)
          Returns the value of the key in plain text.
 void setY(byte[] buffer, short offset, short length)
          Sets the value of the key.
 
Methods inherited from interface javacard.security.Key
clearKey, getSize, getType, isInitialized
 
Methods inherited from interface javacard.security.DSAKey
getG, getP, getQ, setG, setP, setQ
 

Method Detail

setY

public void setY(byte[] buffer,
                 short offset,
                 short length)
          throws CryptoException
Sets the value of the key. When the base, prime and subprime parameters are initialized and the key value is set, the key is ready for use. The plain text data format is big-endian and right-aligned (the least significant bit is the least significant bit of last byte). Input key data is copied into the internal representation.

Note:

Throws:
CryptoException

getY

public short getY(byte[] buffer,
                  short offset)
Returns the value of the key in plain text. The data format is big-endian and right-aligned (the least significant bit is the least significant bit of last byte).



Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.