if (claimsToSerialize instanceof Element) {
StaxUtils.copy((Element)claimsToSerialize, writer);
} else if (claimsToSerialize instanceof ClaimCollection) {
ClaimCollection claimCollection = (ClaimCollection)claims;
claimCollection.serialize(writer, "wst", namespace);
}
}
protected SecurityToken createSecurityToken(Element el, byte[] requestorEntropy)
throws WSSecurityException, Base64DecodingException {