/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /* * $Id: KeySelectorResult.java,v 1.3 2005/05/10 15:47:42 mullan Exp $ */ package javax.xml.crypto; import java.security.Key; /** * The result returned by the {@link KeySelector#select KeySelector.select} * method. *
* At a minimum, a KeySelectorResult
contains the Key
* selected by the KeySelector
. Implementations of this interface
* may add methods to return implementation or algorithm specific information,
* such as a chain of certificates or debugging information.
*
* @author Sean Mullan
* @author JSR 105 Expert Group
* @since 1.6
* @see KeySelector
*/
public interface KeySelectorResult {
/**
* Returns the selected key.
*
* @return the selected key, or null
if none can be found
*/
Key getKey();
}