View Javadoc

1   package org.apache.amber.oauth2.common.message.types;
2   /**
3    *       Copyright 2010 Newcastle University
4    *
5    *          http://research.ncl.ac.uk/smart/
6    *
7    * Licensed to the Apache Software Foundation (ASF) under one or more
8    * contributor license agreements.  See the NOTICE file distributed with
9    * this work for additional information regarding copyright ownership.
10   * The ASF licenses this file to You under the Apache License, Version 2.0
11   * (the "License"); you may not use this file except in compliance with
12   * the License.  You may obtain a copy of the License at
13   *
14   *      http://www.apache.org/licenses/LICENSE-2.0
15   *
16   * Unless required by applicable law or agreed to in writing, software
17   * distributed under the License is distributed on an "AS IS" BASIS,
18   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   * See the License for the specific language governing permissions and
20   * limitations under the License.
21   */
22  
23  
24  /**
25   *
26   *
27   *
28   */
29  public enum TokenType {
30      BEARER("Bearer"),
31      MAC("MAC");
32  
33      private String tokenType;
34  
35      TokenType(String grantType) {
36          this.tokenType = grantType;
37      }
38  
39      @Override
40      public String toString() {
41          return tokenType;
42      }
43  }