Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
BearerAuth.java
Go to the documentation of this file.
1
/*
2
* Ollama4j - Java library for interacting with Ollama server.
3
* Copyright (c) 2025 Amith Koujalgi and contributors.
4
*
5
* Licensed under the MIT License (the "License");
6
* you may not use this file except in compliance with the License.
7
*
8
*/
9
package
io.github.ollama4j.models.request;
10
11
import
lombok.AllArgsConstructor;
12
import
lombok.Data;
13
import
lombok.EqualsAndHashCode;
14
15
@Data
16
@AllArgsConstructor
17
@EqualsAndHashCode(callSuper =
false
)
18
public class
BearerAuth
extends
Auth
{
19
private
String bearerToken;
20
26
public
String
getAuthHeaderValue
() {
27
return
"Bearer "
+ bearerToken;
28
}
29
}
io.github.ollama4j.models.request.Auth
Definition
Auth.java:11
io.github.ollama4j.models.request.BearerAuth
Definition
BearerAuth.java:18
io.github.ollama4j.models.request.BearerAuth.getAuthHeaderValue
String getAuthHeaderValue()
Definition
BearerAuth.java:26
src
main
java
io
github
ollama4j
models
request
BearerAuth.java
Generated by
1.12.0