}
public Subject check(EstablishContext msg) throws SASException {
if (msg.identity_token != null) {
IdentityToken identityToken = msg.identity_token;
int discriminator = identityToken.discriminator();
TSSSASIdentityToken tssIdentityToken = (TSSSASIdentityToken) idTokens.get(new Integer(discriminator));
if (tssIdentityToken == null) {
throw new SASException(1, new Exception("Unsupported IdentityTokenType: " + discriminator));
} else {
return tssIdentityToken.check(identityToken);