/** * Converts the specified GSSName to GlobusPrincipal. * The GSSName is converted into the GlobusPrincipal * only if the GSSName is of type * <code>org.globus.gsi.gssapi.GlobusGSSName</code> * and the name is not anonymous. */ public static GlobusPrincipal toGlobusPrincipal(GSSName name) { return (!name.isAnonymous() && (name instanceof GlobusGSSName)) ? new GlobusPrincipal(name.toString()) : null; }
/** * Converts the specified GSSName to GlobusPrincipal. * The GSSName is converted into the GlobusPrincipal * only if the GSSName is of type * <code>org.globus.gsi.gssapi.GlobusGSSName</code> * and the name is not anonymous. */ public static GlobusPrincipal toGlobusPrincipal(GSSName name) { return (!name.isAnonymous() && (name instanceof GlobusGSSName)) ? new GlobusPrincipal(name.toString()) : null; }
return another.isAnonymous(); if (another.isAnonymous()) { return false;
return another.isAnonymous(); if (another.isAnonymous()) { return false;
if (this.anonymity || this.ctxCred.getName().isAnonymous()) { this.anonymity = true; } else {
if (name.isAnonymous()) { return new GlobusGSSCredentialImpl(); } else {
if (name.isAnonymous()) { return new GlobusGSSCredentialImpl(); } else {
if (this.ctxCred.getName().isAnonymous()) { throw new GlobusGSSException(GSSException.DEFECTIVE_CREDENTIAL, GlobusGSSException.UNKNOWN,
if (this.ctxCred.getName().isAnonymous()) { throw new GlobusGSSException(GSSException.DEFECTIVE_CREDENTIAL, GlobusGSSException.UNKNOWN,
if (this.anonymity || this.ctxCred.getName().isAnonymous()) { this.anonymity = true; } else {