Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4142 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService: . selftest

Subject: perfsonar development work

List archive

perfsonar: r4142 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService: . selftest


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4142 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService: . selftest
  • Date: Tue, 8 Jul 2008 10:31:33 -0400

Author: rodriguez
Date: 2008-07-08 10:31:32 -0400 (Tue, 08 Jul 2008)
New Revision: 4142

Added:

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/EchoAction.java

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/ASValidFileTest.java

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/SelfTest.java

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/TruststoreTest.java
Modified:

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASAction.java

trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASEngine.java
Log:
- Adding support for self tests in EchoRequest type message

Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASAction.java
===================================================================
---
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASAction.java
2008-07-08 13:22:28 UTC (rev 4141)
+++
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASAction.java
2008-07-08 14:31:32 UTC (rev 4142)
@@ -35,6 +35,10 @@
public void setProperties(Properties props) {
this.props=props;
}
+
+ protected Properties getProperties() {
+ return this.props;
+ }

protected Metadata getMetadataFromRequest(Message request) {
// Get Metadata

Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASEngine.java
===================================================================
---
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASEngine.java
2008-07-08 13:22:28 UTC (rev 4141)
+++
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/ASEngine.java
2008-07-08 14:31:32 UTC (rev 4142)
@@ -35,7 +35,7 @@
private Crypto tsCrypto;

public ASEngine() throws PerfSONARException {
- this.acceptedTypes = Arrays.asList(new String[] {
ActionType.AUTHN_EE_REQUEST });
+ this.acceptedTypes = Arrays.asList(new String[] {
ActionType.AUTHN_EE_REQUEST, ActionType.ECHO });

// get logger
logger = (LoggerComponent)
AuxiliaryComponentManager.getInstance()
@@ -128,6 +128,10 @@
action = new AuthNAction(val);
action.setProperties(props);
}
+ else if (actionType.equals(ActionType.ECHO)) {
+ action = new EchoAction();
+ action.setProperties(props);
+ }

if (action == null) {
String m = "ASEngine: Action [" + actionType + "] not
supported";

Added:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/EchoAction.java

Added:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/ASValidFileTest.java

Added:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/SelfTest.java

Added:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/selftest/TruststoreTest.java



  • perfsonar: r4142 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService: . selftest, svnlog, 07/08/2008

Archive powered by MHonArc 2.6.16.

Top of Page