* The token that will hold the child tokens.
* @throws NoSuchMethodException
*/
private void initializeSignedEndorsingSupportingTokens(SecurityPolicyToken spt)
throws NoSuchMethodException {
SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
spt.setChildToken(tmpSpt);
tmpSpt = SecurityPolicy.usernameToken.copy();
tmpSpt.setProcessTokenMethod(new UsernameTokenProcessor());
spt.setChildToken(tmpSpt);
tmpSpt = SecurityPolicy.algorithmSuite.copy();
tmpSpt.setProcessTokenMethod(new AlgorithmSuiteProcessor());
spt.setChildToken(tmpSpt);
SignedPartsElementsProcessor spep = new SignedPartsElementsProcessor();
tmpSpt = SecurityPolicy.signedParts.copy();
tmpSpt.setProcessTokenMethod(spep);
spt.setChildToken(tmpSpt);
tmpSpt = SecurityPolicy.signedElements.copy();
tmpSpt.setProcessTokenMethod(spep);
spt.setChildToken(tmpSpt);
EncryptedPartsElementsProcessor epep = new EncryptedPartsElementsProcessor();
tmpSpt = SecurityPolicy.encryptedParts.copy();
tmpSpt.setProcessTokenMethod(epep);
spt.setChildToken(tmpSpt);
tmpSpt = SecurityPolicy.encryptedElements.copy();
tmpSpt.setProcessTokenMethod(epep);
spt.setChildToken(tmpSpt);
}