|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.openmdx.test.security.auth.TestAuthenticatedPrincipals
public class TestAuthenticatedPrincipals
| Field Summary | |
|---|---|
static String |
GROUP_TYPE
A group principal |
protected static Principal[] |
PRINCIPAL_SET
|
static String |
PRINCIPAL_TYPE
A generic principal |
protected org.openmdx.kernel.security.token.TokenFactory |
tokenFactory
|
protected org.openmdx.kernel.security.token.TokenValidator |
tokenValidator
|
| Constructor Summary | |
|---|---|
TestAuthenticatedPrincipals()
Constructor |
|
TestAuthenticatedPrincipals(String name)
Constructor |
|
| Method Summary | |
|---|---|
void |
consume(String cookie)
|
protected String |
getAlgorithm()
|
protected String |
getAlias()
|
protected Key |
getKey(KeyStore keyStore,
String alias,
String passphrase)
Get a spoecific key |
protected static KeyStore |
getKeyStore(String keyStoreType,
String keyStoreFileName,
String keyStorePassPhrase)
Get a specific Key Store |
protected String |
getKeyStoreFileName()
|
protected String |
getKeyStorePassPhrase()
|
protected String |
getKeyStoreType()
|
protected String |
getPrivateKeyPassPhrase()
|
static void |
main(String[] args)
The batch TestRunner can be given a class to run directly. |
String |
produce()
|
protected void |
setUp()
|
static junit.framework.Test |
suite()
A test runner either expects a static method suite as the entry point to get a test to run or it will extract the suite automatically. |
void |
testCookie()
Coookie test |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.openmdx.kernel.security.token.TokenFactory tokenFactory
protected org.openmdx.kernel.security.token.TokenValidator tokenValidator
public static final String PRINCIPAL_TYPE
public static final String GROUP_TYPE
protected static final Principal[] PRINCIPAL_SET
| Constructor Detail |
|---|
public TestAuthenticatedPrincipals()
public TestAuthenticatedPrincipals(String name)
name - | Method Detail |
|---|
public static void main(String[] args)
public static junit.framework.Test suite()
protected String getAlias()
protected String getKeyStorePassPhrase()
protected String getPrivateKeyPassPhrase()
protected String getAlgorithm()
protected String getKeyStoreType()
protected String getKeyStoreFileName()
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
protected static KeyStore getKeyStore(String keyStoreType,
String keyStoreFileName,
String keyStorePassPhrase)
throws KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
keyStoreType - keyStoreFileName - keyStorePassPhrase -
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
protected Key getKey(KeyStore keyStore,
String alias,
String passphrase)
throws KeyStoreException,
NoSuchAlgorithmException,
UnrecoverableKeyException
keyStore - alias - passphrase -
KeyStoreException
NoSuchAlgorithmException
UnrecoverableKeyException
public void testCookie()
throws Throwable
Throwable
public String produce()
throws org.openmdx.kernel.security.token.TokenException
org.openmdx.kernel.security.token.TokenException
public void consume(String cookie)
throws org.openmdx.kernel.security.token.TokenException
org.openmdx.kernel.security.token.TokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||