KeyInfoType keyInfoType = new KeyInfoType();
SecurityTokenReferenceType securityTokenReferenceType = new SecurityTokenReferenceType();
ReferenceType referenceType = new ReferenceType();
referenceType.setURI("#" + encryptedKeyType.getId());
ObjectFactory objectFactory = new ObjectFactory();
securityTokenReferenceType.getAny().add(objectFactory.createReference(referenceType));
keyInfoType.getContent().add(objectFactory.createSecurityTokenReference(securityTokenReferenceType));
inputProcessorChain.addProcessor(
new DecryptInputProcessor(keyInfoType, encryptedKeyType.getReferenceList(),
(WSSSecurityProperties) securityProperties,
(WSInboundSecurityContext) inputProcessorChain.getSecurityContext())