javax.xml.crypto

Class KeySelector.Purpose

  1. java.lang.Object
  2. extended byjavax.xml.crypto.KeySelector.Purpose
Enclosing class:
KeySelector

  1. public static class KeySelector.Purpose
  2. extends java.lang.Object
The purpose of the key that is to be selected.

Field Summary

Modifier and Type Field and Description
  1. static
  2. KeySelector.Purpose
DECRYPT
A key for decrypting.
  1. static
  2. KeySelector.Purpose
ENCRYPT
A key for encrypting.
  1. static
  2. KeySelector.Purpose
SIGN
A key for signing.
  1. static
  2. KeySelector.Purpose
VERIFY
A key for verifying.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
toString()
Returns a string representation of this purpose ("sign", "verify", "encrypt", or "decrypt").
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

SIGN

  1. public static final KeySelector.Purpose SIGN
A key for signing.

VERIFY

  1. public static final KeySelector.Purpose VERIFY
A key for verifying.

ENCRYPT

  1. public static final KeySelector.Purpose ENCRYPT
A key for encrypting.

DECRYPT

  1. public static final KeySelector.Purpose DECRYPT
A key for decrypting.

Method Detail

toString

  1. public java.lang.String toString( )
Returns a string representation of this purpose ("sign", "verify", "encrypt", or "decrypt").
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this purpose