org.apache.shale.test.mock
Class MockPrincipal

java.lang.Object
  extended by org.apache.shale.test.mock.MockPrincipal
All Implemented Interfaces:
Principal

public class MockPrincipal
extends Object
implements Principal

Mock implementation of Principal.


Constructor Summary
MockPrincipal()
          Construct a default Principal instance.
MockPrincipal(String name)
          Construct a Principal with the specified name.
 
Method Summary
 String getName()
          
 void setName(String name)
          Set the name for this Principal.
 
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

MockPrincipal

public MockPrincipal()

Construct a default Principal instance.


MockPrincipal

public MockPrincipal(String name)

Construct a Principal with the specified name.

Parameters:
name - Name for this Principal
Method Detail

setName

public void setName(String name)

Set the name for this Principal.

Parameters:
name - The new name

getName

public String getName()

Specified by:
getName in interface Principal


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.