/**
* We ignore prefixes for SAML compliance.
*/
public String getNewTicketId(final String prefix) {
if (saml2compliant) {
return new SAMLArtifactType0002(this.randomStringGenerator.getNewStringAsBytes(), new URI(this.sourceLocation)).encode();
} else {
return new SAMLArtifactType0001(this.sourceIdDigest, this.randomStringGenerator.getNewStringAsBytes()).encode();
}
}