org.apache.myfaces.test.mock
Class MockPrincipal

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

public class MockPrincipal
extends Object
implements Principal

Mock implementation of Principal.

Since:
1.0.0

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 © 2011 The Apache Software Foundation. All Rights Reserved.