org.apache.ws.security
Class PublicKeyPrincipal

java.lang.Object
  extended by org.apache.ws.security.PublicKeyPrincipal
All Implemented Interfaces:
Serializable, Principal

public class PublicKeyPrincipal
extends Object
implements Principal, Serializable

This class encapsulates a principal defined by a Public Key. In particular, this class is used for the ds:KeyInfo/ds:KeyValue case in the SignatureProcessor.

See Also:
Serialized Form

Constructor Summary
PublicKeyPrincipal(PublicKey publicKey)
           
 
Method Summary
 String getName()
           
 PublicKey getPublicKey()
           
 void setPublicKey(PublicKey publicKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

PublicKeyPrincipal

public PublicKeyPrincipal(PublicKey publicKey)
Method Detail

getPublicKey

public PublicKey getPublicKey()

getName

public String getName()
Specified by:
getName in interface Principal

setPublicKey

public void setPublicKey(PublicKey publicKey)


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.