2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4

```java
public class MockAppIdentityService implements AppIdentityService
```
Beta   

Mock implementation of AppIdentityService interface for testing.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> MockAppIdentityService

## Implements

com.google.appengine.api.appidentity.AppIdentityService

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### MockAppIdentityService()

```java
public MockAppIdentityService()
```

## Methods

### getAccessToken(Iterable\<String\> scopes)

```java
public AppIdentityService.GetAccessTokenResult getAccessToken(Iterable<String> scopes)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `scopes` | `Iterable<String>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult` |   |

### getAccessTokenText()

```java
public String getAccessTokenText()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### getAccessTokenUncached(Iterable\<String\> scopes)

```java
public AppIdentityService.GetAccessTokenResult getAccessTokenUncached(Iterable<String> scopes)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `scopes` | `Iterable<String>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult` |   |

### getDefaultGcsBucketName()

```java
public String getDefaultGcsBucketName()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### getGetAccessTokenCallCount()

```java
public int getGetAccessTokenCallCount()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### getPublicCertificatesForApp()

```java
public Collection<PublicCertificate> getPublicCertificatesForApp()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Collection<com.google.appengine.api.appidentity.PublicCertificate>` |   |

### getServiceAccountName()

```java
public String getServiceAccountName()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### parseFullAppId(String fullAppId)

```java
public AppIdentityService.ParsedAppId parseFullAppId(String fullAppId)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `fullAppId` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId` |   |

### setAccessTokenText(String text)

```java
public void setAccessTokenText(String text)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `text` | `String` |

### signForApp(byte\[\] signBlob)

```java
public AppIdentityService.SigningResult signForApp(byte[] signBlob)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `signBlob` | `byte[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.appidentity.AppIdentityService.SigningResult` |   |