Coder Social home page Coder Social logo

fantasticcow / bws-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blackberry/bws-samples

0.0 2.0 0.0 314 KB

This repo contains code samples for BlackBerry Web Services for Enterprise Administration in Java, and also in Microsoft .NET C#. These code samples are designed to demonstrate the basic essentials needed to work with the BlackBerry Web Services for Enterprise Administration API.

C# 44.54% Java 49.90% PowerShell 5.57%

bws-samples's Introduction

BWS Code Samples Repository

The BWS-CodeSamples repository holds code samples that demonstrate how to use the BlackBerry Web Services for Enterprise Administration API.

All APIs shared in this repository are Open Source under the Apache 2.0 License

To contribute code to this repository you must be signed up as an official contributor.

Code Organization

  • Each sample added to the repository is available in both Java and C#. As of 10.2, some samples are also available for PowerShell.
  • Samples for 10.2 have different sets of output for both BDS and UDS.
  • To run the AuthenticationSample.java app, make sure that the project also includes Krb5LoginModuleConfiguration.java and ServiceTicketGenerator.java as separate files.

12.0 Samples

IN BES12, SSO authentication is not supported. The AuthenticationSample apps still include this functionality for compatibility with BES 10.

C#

AuthenticationSample

  • AuthenticationSample.cs - .NET code sample for authentication methods
  • AuthenticationSample.ConsoleBES12.txt - Output for AuthenticationSample.cs

SampleBwsClient

  • SampleBwsClient.cs - .NET code sample for creating a user
  • SampleBwsClient.ConsoleBES12.txt - Output for SampleBwsClient.cs

Java

AuthenticationSample

  • AuthenticationSample.java - Java code sample for authentication methods
  • AuthenticationSample.ConsoleBES12.txt - Output for AuthenticationSample.java
  • Krb5LoginModuleConfiguration.java - A resource for AuthenticationSample.java
  • ServiceTicketGenerator.java - A resource for AuthenticationSample.java

SampleBwsClient

  • SampleBwsClient.java - Java code sample for creating a user
  • SampleBwsClient.ConsoleBES12.txt - Output for SampleBwsClient.java

PowerShell

SampleBwsClient

  • SampleBwsClient.ps1 - PowerShell code sample for creating a user
  • SampleBwsClient.ConsoleBES12.txt - Output for SampleBwsClient.ps1

10.2 Samples

C#

AuthenticationSample

  • AuthenticationSample.cs - .NET code sample for authentication methods
  • AuthenticationSample_CS.ConsoleBDS.text - Output for AuthenticationSample.cs (BDS)
  • AuthenticationSample_CS.ConsoleUDS.text - Output for AuthenticationSample.cs (UDS)

SampleBwsClient

  • SampleBwsClient.cs - .NET code sample for creating a user
  • SampleBwsClient_CS.ConsoleBDS.txt - Output for SampleBwsClient.cs (BDS)
  • SampleBwsClient_CS.ConsoleUDS.txt - Output for SampleBwsClient.cs (UDS)

Java

AuthenticationSample

  • AuthenticationSample.java - Java code sample for authentication methods
  • AuthenticationSample_Java.ConsoleBDS.txt - Output for AuthenticationSample.java (BDS)
  • AuthenticationSample_Java.ConsoleUDS.txt - Output for AuthenticationSample.java (UDS)
  • Krb5LoginModuleConfiguration.java - A resource for AuthenticationSample.java
  • ServiceTicketGenerator.java - A resource for AuthenticationSample.java

SampleBwsClient

  • SampleBwsClient.java - Java code sample for creating a user
  • SampleBwsClient_Java.ConsoleBDS.txt - Output for SampleBwsClient.java (BDS)
  • SampleBwsClient_Java.ConsoleUDS.txt - Output for SampleBwsClient.java (UDS)

PowerShell

SampleBwsClient

  • SampleBwsClient.ps1 - PowerShell code sample for creating a user
  • SampleBwsClient_Output.txt - Output for SampleBwsClient.ps1

10.1.3 and earlier Samples

C#

AuthenticationSample

  • AuthenticationSample.cs - .NET code sample for authentication methods
  • AuthenticationSample_CS.Console.text - Output for AuthenticationSample.cs

SampleBwsClient

  • SampleBwsClient.cs - .NET code sample for creating a user
  • SampleBwsClient_CS.Console.txt - Output for SampleBwsClient.cs

Java

AuthenticationSample

  • AuthenticationSample.java - Java code sample for authentication methods
  • AuthenticationSample_Java.Console.txt - Output for AuthenticationSample.java
  • Krb5LoginModuleConfiguration.java - A resource for AuthenticationSample.java
  • ServiceTicketGenerator.java - A resource for AuthenticationSample.java

SampleBwsClient

  • SampleBwsClient.java - Java code sample for creating a user
  • SampleBwsClient_Java.Console.txt - Output for SampleBwsClient.java

Running the samples

  • Set up your development environment by following the instructions in the BlackBerry Web Services Getting Started guide. You can find Getting Started Guides for Java and .NET at docs.blackberry.com/BWSBES10
  • For .NET projects, verify that your project includes the System.Web.Services reference.
  • If you want to use single sign-on authentication, reduce the restrictions of Windows UAC or turn off Windows UAC. Then, in the Registry Editor, in the following location, create a DWORD value named “allowtgtsessionkey” and assign it a value of 1: -- Windows 7, Windows Vista, Windows Server: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters -- Windows XP: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos

Repository Committers

Bug Reporting and Feature Requests

If you find a bug in a sample, or have an enhancement request, simply file an Issue for the sample and send a message (via github messages) to the sample Author(s) to let them know that you have filed an Issue.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bws-samples's People

Contributors

wesbarichak avatar mcacciacarro avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.