public static class

KeySelector.Purpose

extends Object
java.lang.Object
   ↳ javax.xml.crypto.KeySelector.Purpose

Class Overview

The purpose of the key that is to be selected.

Summary

Fields
public static final KeySelector.Purpose DECRYPT A key for decrypting.
public static final KeySelector.Purpose ENCRYPT A key for encrypting.
public static final KeySelector.Purpose SIGN A key for signing.
public static final KeySelector.Purpose VERIFY A key for verifying.
Public Methods
String toString()
Returns a string representation of this purpose ("sign", "verify", "encrypt", or "decrypt").
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final KeySelector.Purpose DECRYPT

A key for decrypting.

public static final KeySelector.Purpose ENCRYPT

A key for encrypting.

public static final KeySelector.Purpose SIGN

A key for signing.

public static final KeySelector.Purpose VERIFY

A key for verifying.

Public Methods

public String toString ()

Returns a string representation of this purpose ("sign", "verify", "encrypt", or "decrypt").

Returns
  • a string representation of this purpose