コード例 #1
0
ファイル: EncapsulateKeyTest.java プロジェクト: ash2005/Sec2
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   this.keyProvider = TestKeyProvider.getInstance();
   this.configuration = ConfigurationFactory.createDefault();
   DatabaseServer databaseServer = new DatabaseServer(configuration);
   this.keyserver = new KeyServer(databaseServer, configuration);
   this.bc = new BouncyCastleProvider();
 }
コード例 #2
0
 /** @return a list of groups the test user is member of */
 private GroupList fetchGroupsList() {
   GroupList list = null;
   try {
     list =
         (GroupList)
             proc.process(content, TestKeyProvider.getInstance().getUserID(), "testRequest");
   } catch (BackendProcessException e) {
     fail(e.getMessage());
   }
   return list;
 }
コード例 #3
0
 /** Create processor and SAMLEngine. */
 @Override
 public void setUp() {
   super.setUp();
   proc = new GetGroupsForUserProcessor();
   try {
     content = SAMLEngine.getXMLObject(GetGroupsForUser.class);
     content.setValue(TestKeyProvider.getInstance().getUserIDBase64());
   } catch (SAMLEngineException e) {
     e.log();
     fail(e.toString());
   }
 }