Line data Source code
1 : // Copyright (C) 2015 The Android Open Source Project 2 : // 3 : // Licensed under the Apache License, Version 2.0 (the "License"); 4 : // you may not use this file except in compliance with the License. 5 : // You may obtain a copy of the License at 6 : // 7 : // http://www.apache.org/licenses/LICENSE-2.0 8 : // 9 : // Unless required by applicable law or agreed to in writing, software 10 : // distributed under the License is distributed on an "AS IS" BASIS, 11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 : // See the License for the specific language governing permissions and 13 : // limitations under the License. 14 : 15 : package com.google.gerrit.extensions.auth.oauth; 16 : 17 : public class OAuthUserInfo { 18 : 19 : private final String externalId; 20 : private final String userName; 21 : private final String emailAddress; 22 : private final String displayName; 23 : private final String claimedIdentity; 24 : 25 : public OAuthUserInfo( 26 : String externalId, 27 : String userName, 28 : String emailAddress, 29 : String displayName, 30 0 : String claimedIdentity) { 31 0 : this.externalId = externalId; 32 0 : this.userName = userName; 33 0 : this.emailAddress = emailAddress; 34 0 : this.displayName = displayName; 35 0 : this.claimedIdentity = claimedIdentity; 36 0 : } 37 : 38 : public String getExternalId() { 39 0 : return externalId; 40 : } 41 : 42 : public String getUserName() { 43 0 : return userName; 44 : } 45 : 46 : public String getEmailAddress() { 47 0 : return emailAddress; 48 : } 49 : 50 : public String getDisplayName() { 51 0 : return displayName; 52 : } 53 : 54 : public String getClaimedIdentity() { 55 0 : return claimedIdentity; 56 : } 57 : }