[java-identity-provider COMMIT] /trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketSe...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Oct 13 22:00:31 EDT 2016
Author: tzeller
Date: Thu Oct 13 22:00:30 2016
New Revision: 8491
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8491&view=rev
Log:
IDP-865 - Revert inadvertent debug logging from r8425
Did not intend to commit debug logging added when troubleshooting tests.
Modified:
trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketService.java
Modified: trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketService.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketService.java?rev=8491&r1=8490&r2=8491&view=diff
==============================================================================
--- trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketService.java (original)
+++ trunk/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/ticket/impl/EncodingTicketService.java Thu Oct 13 22:00:30 2016
@@ -175,11 +175,8 @@
private <T extends Ticket> T encode(final Class<T> ticketClass, final T ticket, final String prefix) {
final String opaque;
try {
- final String y = serializer(ticketClass).serialize(ticket);
- log.debug("encode y [{}]", y);
opaque = dataSealer.wrap(
- y, ticket.getExpirationInstant().getMillis());
- log.debug("encode opaque [{}]", opaque);
+ serializer(ticketClass).serialize(ticket), ticket.getExpirationInstant().getMillis());
} catch (final Exception e) {
throw new RuntimeException("Ticket encoding failed", e);
}
@@ -198,11 +195,7 @@
*/
private <T extends Ticket> T decode(final Class<T> ticketClass, final String id, final String prefix) {
try {
- final String x = id.substring(prefix.length() + 1);
- log.debug("decode x [{}]", x);
- log.debug("decode unwrapping");
- final String decrypted = dataSealer.unwrap(x);
- log.debug("decrypted [{}]", decrypted);
+ final String decrypted = dataSealer.unwrap(id.substring(prefix.length() + 1));
return serializer(ticketClass).deserialize(0, null, id, decrypted, 0L);
} catch (final Exception e) {
log.warn("Ticket decoding failed with error: " + e.getMessage());
More information about the commits
mailing list