Package org.apache.hadoop.security.proto.SecurityProtos

Examples of org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder


    viaProto = false;
  }

  @Override
  public synchronized ByteBuffer getIdentifier() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (this.identifier != null) {
      return this.identifier;
    }
    if (!p.hasIdentifier()) {
      return null;
    }
    this.identifier = convertFromProtoFormat(p.getIdentifier());
    return this.identifier;
  }
View Full Code Here


    this.identifier = identifier;
  }

  @Override
  public synchronized ByteBuffer getPassword() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (this.password != null) {
      return this.password;
    }
    if (!p.hasPassword()) {
      return null;
    }
    this.password =  convertFromProtoFormat(p.getPassword());
    return this.password;
  }
View Full Code Here

    this.password = password;
  }

  @Override
  public synchronized String getKind() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasKind()) {
      return null;
    }
    return (p.getKind());
  }
View Full Code Here

    builder.setKind((kind));
  }

  @Override
  public synchronized String getService() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasService()) {
      return null;
    }
    return (p.getService());
  }
View Full Code Here

    viaProto = false;
  }

  @Override
  public synchronized ByteBuffer getIdentifier() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (this.identifier != null) {
      return this.identifier;
    }
    if (!p.hasIdentifier()) {
      return null;
    }
    this.identifier = convertFromProtoFormat(p.getIdentifier());
    return this.identifier;
  }
View Full Code Here

    this.identifier = identifier;
  }

  @Override
  public synchronized ByteBuffer getPassword() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (this.password != null) {
      return this.password;
    }
    if (!p.hasPassword()) {
      return null;
    }
    this.password =  convertFromProtoFormat(p.getPassword());
    return this.password;
  }
View Full Code Here

    this.password = password;
  }

  @Override
  public synchronized String getKind() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasKind()) {
      return null;
    }
    return (p.getKind());
  }
View Full Code Here

    builder.setKind((kind));
  }

  @Override
  public synchronized String getService() {
    TokenProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasService()) {
      return null;
    }
    return (p.getService());
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.