All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.tfeng.play.security.oauth2.AuthenticationManager Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */
package me.tfeng.play.security.oauth2;

@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public interface AuthenticationManager {
  public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"AuthenticationManager\",\"namespace\":\"me.tfeng.play.security.oauth2\",\"types\":[{\"type\":\"record\",\"name\":\"ClientAuthentication\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"authorities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"scopes\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}]},{\"type\":\"record\",\"name\":\"UserAuthentication\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"authorities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}]},{\"type\":\"record\",\"name\":\"Authentication\",\"fields\":[{\"name\":\"client\",\"type\":\"ClientAuthentication\"},{\"name\":\"user\",\"type\":[\"null\",\"UserAuthentication\"]}]},{\"type\":\"error\",\"name\":\"AuthenticationError\",\"fields\":[{\"name\":\"message\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}],\"messages\":{\"authenticate\":{\"request\":[{\"name\":\"token\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"response\":\"Authentication\",\"errors\":[\"AuthenticationError\"]}}}");
  me.tfeng.play.security.oauth2.Authentication authenticate(java.lang.String token) throws me.tfeng.play.security.oauth2.AuthenticationError;

  @SuppressWarnings("all")
  public interface Callback extends AuthenticationManager {
    public static final org.apache.avro.Protocol PROTOCOL = me.tfeng.play.security.oauth2.AuthenticationManager.PROTOCOL;
    void authenticate(java.lang.String token, org.apache.avro.ipc.Callback callback) throws java.io.IOException;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy