digital.toke.event.TokenEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vault-java-driver Show documentation
Show all versions of vault-java-driver Show documentation
A java driver for a subset of Hashicorp's Vault HTTP REST API.
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 David R. Smith All Rights Reserved
*/
package digital.toke.event;
import java.util.EventObject;
import digital.toke.Token;
public class TokenEvent extends EventObject {
private static final long serialVersionUID = 1L;
final EventEnum type;
final Token token;
public TokenEvent(Object obj, EventEnum type) {
super(obj);
this.type = type;
token = null;
}
public TokenEvent(Object obj, Token token, EventEnum type) {
super(obj);
this.type = type;
this.token = token;
}
public Token getToken() {
return token;
}
public EventEnum getType() {
return type;
}
}